Here comes a tiny fix for BasicInternalFrameUI.

2005-09-23  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/plaf/basic/BasicInternalFrameUI.java
        (deactivateFrame): New method.
        (InternalFramePropertyChangeListener.propertyChange): Call
        new deactivate() method instead of getDesktopManager.deactivate()

/Roman
Index: javax/swing/plaf/basic/BasicInternalFrameUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- javax/swing/plaf/basic/BasicInternalFrameUI.java	19 Sep 2005 18:33:41 -0000	1.19
+++ javax/swing/plaf/basic/BasicInternalFrameUI.java	23 Sep 2005 15:45:12 -0000	1.20
@@ -950,7 +950,7 @@
           if (frame.isSelected())
             activateFrame(frame);
           else
-            getDesktopManager().deactivateFrame(frame);
+            deactivateFrame(frame);
         }
       else if (evt.getPropertyName().equals(JInternalFrame.ROOT_PANE_PROPERTY)
                || evt.getPropertyName().equals(
@@ -1702,6 +1702,16 @@
   protected void activateFrame(JInternalFrame f)
   {
     getDesktopManager().activateFrame(f);
+  }
+
+  /**
+   * This is a convenience method that deactivates the JInternalFrame.
+   *
+   * @param f the JInternalFrame to deactivate
+   */
+  protected void deactivateFrame(JInternalFrame f)
+  {
+    getDesktopManager().deactivateFrame(f);
   }
 
   /**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to