harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r594530 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTabbedPaneUI.java
Date Tue, 13 Nov 2007 13:25:23 GMT
Author: apetrenko
Date: Tue Nov 13 05:25:22 2007
New Revision: 594530

URL: http://svn.apache.org/viewvc?rev=594530&view=rev
Log:
Patch for HARMONY-4976 "[classlib][EIOffice]component on JTabbedPane 
sometimes invisible"

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTabbedPaneUI.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTabbedPaneUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTabbedPaneUI.java?rev=594530&r1=594529&r2=594530&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTabbedPaneUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTabbedPaneUI.java
Tue Nov 13 05:25:22 2007
@@ -1690,15 +1690,13 @@
 
     protected void setVisibleComponent(final Component component) {
         Component oldVisible = getVisibleComponent();
-        if (oldVisible == component) {
-            return;
-        }
-
+        if (oldVisible != component) {
         if (oldVisible != null) {
             oldVisible.setVisible(false);
         }
-
         visibleComponent = component;
+        }
+
         if (visibleComponent != null) {
             visibleComponent.setVisible(true);
         }



Mime
View raw message