This patch removes the bindings for a JComponent when it has been
removed from its parent container.
2005-11-15 Anthony Balkissoon <[EMAIL PROTECTED]>
* javax/swing/JComponent.java:
(removeNotify): Unregister WHEN_IN_FOCUSED_WINDOW bindings from the
KeyboardManager.
--Tony
Index: javax/swing/JComponent.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JComponent.java,v
retrieving revision 1.84
diff -u -r1.84 JComponent.java
--- javax/swing/JComponent.java 14 Nov 2005 20:58:47 -0000 1.84
+++ javax/swing/JComponent.java 15 Nov 2005 21:47:44 -0000
@@ -2921,8 +2921,7 @@
{
super.removeNotify();
- // FIXME: remove the WHEN_IN_FOCUSED_WINDOW bindings from the
- // KeyboardManager
+ KeyboardManager.getManager().clearBindingsForComp(this);
// Notify ancestor listeners.
fireAncestorEvent(this, AncestorEvent.ANCESTOR_REMOVED);
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches