[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/25843] JSplitPanel bugs
From: |
cvs-commit at developer dot classpath dot org |
Subject: |
[Bug swing/25843] JSplitPanel bugs |
Date: |
21 Jan 2006 22:50:35 -0000 |
------- Comment #2 from cvs-commit at developer dot classpath dot org
2006-01-21 22:50 -------
Subject: Bug 25843
CVSROOT: /cvsroot/classpath
Module name: classpath
Branch:
Changes by: Roman Kennke <address@hidden> 06/01/21
22:49:47
Modified files:
javax/swing/plaf/basic: BasicBorders.java BasicLookAndFeel.java
BasicSplitPaneDivider.java
BasicSplitPaneUI.java
. : ChangeLog
Log message:
2006-01-21 Roman Kennke <address@hidden>
PR classpath/25843:
* javax/swing/plaf/basic/BasicBorders.java
(getSplitPaneDividerBorder): Use new border constructor
without arguments.
(SplitPaneDividerBorder.highlight): Removed unneeded field.
(SplitPaneDividerBorder.shadow): Removed unneeded field.
(SplitPaneDividerBorder()): Changed constructor to do nothing. The
colors are fetched dynamically in the paintBorder method.
(SplitPaneDividerBorder.paintBorder): Fetch colors dynamically from
the look and feel.
(SplitPaneDividerBorder.isBorderOpaque): Returns true
unconditionally.
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Added default for SplitPaneDivider.border.
* javax/swing/plaf/basic/BasicSplitPaneDivider.java
(tmpBorder): Removed unneeded inner class.
(BasicSplitPaneDivider): Removed setting of border.
(setSplitPaneUI): Don't add the mouse handler to the splitpane
itself.
* javax/swing/plaf/basic/BasicSplitPaneUI.java
(BasicHorizontalLayoutManager.layoutContainer): Mostly rewritten
to get behaviour right.
(BasicHorizontalLayoutManager.distributeExtraSpace): Removed
implementation. This must be rewritten since the layout now works
slightly different (basically, it shouldn't modify the sizes[]
here but instead the dividerLocation.
(dividerLocation): New field.
(installDefaults): Initialize border on divider.
(uninstallDefaults): Only remove background color and border from
splitPane if they are instances of UIDefaults (== not set by
application).
(setDividerLocation): Set the dividerLocation field instead of
doing stunt acts here.
(getDividerLocation): Return dividerLocation field.
(getMinimumDividerLocation): Fixed calculation of minimum location.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicBorders.java.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicLookAndFeel.java.diff?tr1=1.82&tr2=1.83&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicSplitPaneDivider.java.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6134&tr2=1.6135&r1=text&r2=text
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25843