harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r563884 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java
Date Wed, 08 Aug 2007 13:56:55 GMT
Author: apetrenko
Date: Wed Aug  8 06:56:54 2007
New Revision: 563884

URL: http://svn.apache.org/viewvc?view=rev&rev=563884
Log:
Patch for HARMONY-4609 "[classlib][swing] fixed default component in JSplitPane"

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

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java?view=diff&rev=563884&r1=563883&r2=563884
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java
Wed Aug  8 06:56:54 2007
@@ -382,6 +382,18 @@
                     splitPane.setDividerLocation(dividerLocation);
                 }
             }
+            if ((components[RIGHT_COMPONENT_INDEX] != null) && (components[LEFT_COMPONENT_INDEX]
== null)) {
+                dividerLocation = topLeft;
+                if (dividerLocation != splitPane.getDividerLocation() && isDisplayed)
{
+                    splitPane.setDividerLocation(dividerLocation);
+                }
+            }            
+            if ((components[RIGHT_COMPONENT_INDEX] == null) && (components[LEFT_COMPONENT_INDEX]
!= null)) {
+                dividerLocation = containerSize - bottomRight - dividerSize;
+                if (dividerLocation != splitPane.getDividerLocation() && isDisplayed)
{
+                    splitPane.setDividerLocation(dividerLocation);
+                }
+            }            
         }
     }
 



Mime
View raw message