[gui] [PATCH] Fix to Container's remove() method
David Jee
djee@redhat.com
Tue May 25 18:05:00 GMT 2004
Hello,
I committed the following patch to the java-gui-branch. It fixes
Container's remove() method, such that the component's parent is not set
to null until after we removed the component from the layout manager.
This fixes a bug where NullPointerExceptions were being thrown from
CardLayout's removeLayoutContainer(), when the component's parent was
being accessed.
-David Jee
2004-05-25 David Jee <djee@redhat.com>
* java/awt/Container.java
(remove): Set component's parent to null only after we removed the
component from its parent's layout manager.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CardLayoutRegressionFix.patch
Type: text/x-patch
Size: 854 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040525/24b9c8ed/attachment.bin>
More information about the Java-patches
mailing list