CVSROOT: /cvsroot/classpath
Module name: classpath
Branch:
Changes by: Roman Kennke <[EMAIL PROTECTED]> 05/10/27 12:42:17
Modified files:
javax/swing/plaf/basic: BasicScrollBarUI.java
. : ChangeLog
Log message:
2005-10-27 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicScrollBarUI.java
(PropertyChangeHandler.propertyChange): If orientation property
changes, re-setup the UI.
(TrackListener.mouseReleased): Removed unused code.
(createIncreaseButton): Simply return a new instance without any
hacks.
(createDecreaseButton): Likewise.
(installComponents): Do not create the incrButton and decrButton
here, only install them on the ScrollBar.
(installDefaults): Also initialize the incrButton and decrButton
fields here.
(uninstallComponents): Added some null checks.
(uninstallDefaults): Uninstall border using the LookAndFeel utility
method. Set incrButton and decrButton to null here.
(uninstallListeners): Added null checks.
(uninstallUI): Changed order of method calls. First uninstall
listeners then uninstallDefaults, because uninstallDefaults sets
the incrButton and decrButton fields to null, and uninstallListeners
removes a listener from them. Avoids NPE.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicScrollBarUI.java.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5366&tr2=1.5367&r1=text&r2=text