harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r576943 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java
Date Tue, 18 Sep 2007 15:15:54 GMT
Author: apetrenko
Date: Tue Sep 18 08:15:53 2007
New Revision: 576943

URL: http://svn.apache.org/viewvc?rev=576943&view=rev
Log:
Patch for HARMONY-4796 "[class][swing] JInternalFrame needs to call UpdateUI instead of Internal
UpdateUIForFrame"

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java?rev=576943&r1=576942&r2=576943&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java
Tue Sep 18 08:15:53 2007
@@ -210,7 +210,7 @@
         @Override
         public void updateUI() {
             updateUIForIcon();
-            getInternalFrame().updateUIForFrame();
+            getInternalFrame().updateUI();
         }
 
         void updateUIForIcon() {
@@ -445,7 +445,7 @@
         enableEvents(AWTEvent.KEY_EVENT_MASK);
         setFocusTraversalPolicy(KeyboardFocusManager.getCurrentKeyboardFocusManager()
                 .getDefaultFocusTraversalPolicy());
-        updateUIForFrame();
+        updateUI();
         this.desktopIcon = new JDesktopIcon(this);
         setRootPaneCheckingEnabled(true);
         // non-selected internalFrame must have visible glassPane
@@ -555,14 +555,11 @@
      */
     @Override
     public void updateUI() {
-        updateUIForFrame();
+    	setUI((InternalFrameUI) UIManager.getUI(this));
+    	
         if (getDesktopIcon() != null) {
             getDesktopIcon().updateUIForIcon();
         }
-    }
-
-    void updateUIForFrame() {
-        setUI((InternalFrameUI) UIManager.getUI(this));
     }
 
     /**



Mime
View raw message