This fixes a problem with the JInternalFrame where you couldn't drag
after switching a theme. The problem was that we didn't recognize the
rootPaneCheckingEnabled flag in remove() and instead perform each remove
call to the contentPane, where we should really do it on the frame
itself.

2006-03-16  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/JInternalFrame.java
        (remove): Respect the rootPaneCheckingEnabled flag here.


-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/JInternalFrame.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JInternalFrame.java,v
retrieving revision 1.29
diff -u -r1.29 JInternalFrame.java
--- javax/swing/JInternalFrame.java	15 Mar 2006 14:34:56 -0000	1.29
+++ javax/swing/JInternalFrame.java	16 Mar 2006 13:40:21 -0000
@@ -1190,7 +1190,7 @@
   {
     // If we're removing the root pane, use super.remove.  Otherwise
     // pass it on to the content pane instead.
-    if (comp==rootPane)
+    if (comp==rootPane || ! isRootPaneCheckingEnabled())
       super.remove(comp);
     else
       getContentPane().remove(comp);

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to