CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: David Gilbert <[EMAIL PROTECTED]> 05/10/24 20:30:54
Modified files: . : ChangeLog javax/swing/plaf/basic: BasicScrollBarUI.java javax/swing/plaf/metal: MetalLookAndFeel.java MetalScrollBarUI.java MetalScrollButton.java Log message: 2005-10-24 David Gilbert <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicScrollBarUI.java (ModelListener.stateChanged): changed call to getThumbBounds() to updateThumbRect(), (PropertyChangeHandler.propertyChange): likewise, plus added handling for 'enabled' property, (getMaximumSize): return maximum dimension, (getThumbBounds): just return field value, (getTrackBounds): just return field value, (installUI): switch order of calls to installDefaults() and installComponents(), (layoutHScrollBar): reimplemented using new updateThumbRect() method, (layoutVScrollBar): likewise, (updateThumbRect): new method, * javax/swing/plaf/metal/MetalLookAndFeel.java (initComponentDefaults): added 'ScrollBar.width' default, * javax/swing/plaf/metal/MetalScrollBarUI.java (MIN_THUMB_SIZE): changed value, (MIN_THUMB_SIZE_FREE_STANDING): new field, (isFreeStanding): set default to true, (scrollBarShadowColor): new field, (installDefaults): initialise scrollBarShadowColor, (createDecreaseButton): retain reference in decreaseButton field, (createIncreaseButton): retain reference in increaseButton field, (paintTrackHorizontal): use scrollBarShadowColor, add special handling for free standing scroll bar in disabled state, (paintTrackVertical): likewise, (paintThumb): separate horizontal and vertical cases, (paintThumbHorizontal): new method, (paintThumbVertical): new method, (getMinimumThumbSize): return different size depending on whether or not the scroll bar is free standing, * javax/swing/plaf/metal/MetalScrollButton.java (paintNorthBorderFreeStanding): modified drawing. ---------------------------------------------------------------------- CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5334&tr2=1.5335&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicScrollBarUI.java.diff?tr1=1.27&tr2=1.28&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java.diff?tr1=1.67&tr2=1.68&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/metal/MetalScrollBarUI.java.diff?tr1=1.9&tr2=1.10&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/metal/MetalScrollButton.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text