CVSROOT: /cvsroot/classpath Module name: classpath Changes by: Roman Kennke <rabbit78> 06/10/09 13:51:45
Modified files: javax/swing : JSplitPane.java javax/swing/plaf/basic: BasicSplitPaneUI.java . : ChangeLog Log message: 2006-10-09 Roman Kennke <[EMAIL PROTECTED]> PR 29325 * javax/swing/JSplitPane.java (dividerLocation): New field. Stores the divider location. (JSplitPane): Initialize dividerLocation with -1. (addImpl): Removed unneeded local variables. (getDividerLocation): Manage dividerLocation in the JSplitPane class, not in the UI. (setDividerLocation): Manage dividerLocation in the JSplitPane class, not in the UI. Only call the UI method for notification. * javax/swing/plaf/basic/BasicSplitPaneUI.java (BasicHorizontalLayoutManager.layoutContainer): Fetch divider location from the JSplitPane. Honour the minimumSize, but only if the divider location hasn't been set explicitly. (BasicHorizontalLayoutManager.minimumLayoutSize): Removed unneeded statement. (BasicHorizontalLayoutManager.preferredLayoutSize): Removed unneeded statement. (BasicHorizontalLayoutManager.resetToPreferredSizes): Don't touch the divider location. (dividerLocationSet): New field. (dividerLocation): Removed field. (createActionMap): Fetch and set divider location on the JSplitPane. (getDividerLocation): Return the actual real divider location. (getMaximumSize): Removed unneeded cast. (getPreferredSize): Removed unneeded cast. (getMinimumSize): Removed unneeded cast. (installUI): Initialize dividerLocationSet with false. (uninstallUI): Initialize dividerLocationSet with false. (setDividerLocation): Set dividerLocationSet to true. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JSplitPane.java?cvsroot=classpath&r1=1.19&r2=1.20 http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java?cvsroot=classpath&r1=1.33&r2=1.34 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8655&r2=1.8656