2005-09-06  Lillian Angel  <[EMAIL PROTECTED]>

        * javax/swing/plaf/basic/BasicScrollBarUI:
        Fixes Bug PR23529.
        (installUI): Changed delay for Timer. Was set too
        long and actionPerformed was not being called fast
        enough when the user clicks on the scroll bar. This
        is because the timer is stopped after the mouse is
        released.

Index: javax/swing/plaf/basic/BasicScrollBarUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicScrollBarUI.java,v
retrieving revision 1.23
diff -u -r1.23 BasicScrollBarUI.java
--- javax/swing/plaf/basic/BasicScrollBarUI.java	18 Aug 2005 20:22:16 -0000	1.23
+++ javax/swing/plaf/basic/BasicScrollBarUI.java	6 Sep 2005 15:06:08 -0000
@@ -873,7 +873,7 @@
 	trackRect = new Rectangle();
 	thumbRect = new Rectangle();
 
-	scrollTimer = new Timer(200, null);
+	scrollTimer = new Timer(50, null);
 	scrollTimer.setRepeats(true);
 
 	installComponents();
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to