You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ap...@apache.org on 2007/09/18 17:15:54 UTC
svn commit: r576943 -
/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JInternalFrame.java
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));
}
/**