diff options
author | Mark Wielaard <mark@klomp.org> | 2006-03-04 11:33:13 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2006-03-04 11:33:13 +0000 |
commit | b735ea36f3792d4546167135645001ade54c811d (patch) | |
tree | e8cbe15bd735d92bd42ff316b80bc46d769b78b5 | |
parent | 5e7631c5c120b00be0373d5550050d9ad1144df9 (diff) | |
download | classpath-b735ea36f3792d4546167135645001ade54c811d.tar.gz |
* java/awt/Container.java (remove(int)): Always call removeNotify()
on removed Component.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/awt/Container.java | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2006-03-04 Mark Wielaard <mark@klomp.org> + * java/awt/Container.java (remove(int)): Always call removeNotify() + on removed Component. + +2006-03-04 Mark Wielaard <mark@klomp.org> + Fixes bug #26460 reported by Beat Wolf <asraniel@fryx.ch>. * javax/swing/JEditorPane.java (setText): Check for empty String with equals(), not equality (==). diff --git a/java/awt/Container.java b/java/awt/Container.java index 3cb245043..41892caea 100644 --- a/java/awt/Container.java +++ b/java/awt/Container.java @@ -410,8 +410,7 @@ public class Container extends Component for (int j = 0; j < list.length; j++) r.removeComponentListener(list[j]); - if (r.isShowing()) - r.removeNotify(); + r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); |