/[classpath]/classpath/javax/swing/plaf/basic/BasicScrollBarUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicScrollBarUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by rabbit78, Thu Aug 18 20:22:16 2005 UTC revision 1.24 by langel, Tue Sep 6 15:06:40 2005 UTC
# Line 233  public class BasicScrollBarUI extends Sc Line 233  public class BasicScrollBarUI extends Sc
233      {      {
234        if (block)        if (block)
235          {          {
236            // Only need to check it if it's block scrolling            // Only need to check it if it's block scrolling
237            // We only block scroll if the click occurs            // We only block scroll if the click occurs
238            // in the track.            // in the track.
239            if (! trackListener.shouldScroll(direction))            if (!trackListener.shouldScroll(direction))
240              {              {
241                trackHighlight = NO_HIGHLIGHT;                trackHighlight = NO_HIGHLIGHT;
242                scrollbar.repaint();                scrollbar.repaint();
243                return;                return;
244              }              }
245            scrollByBlock(direction);            scrollByBlock(direction);
246          }          }
247        else        else
248          scrollByUnit(direction);          scrollByUnit(direction);
249      }      }
250    }    }
251    
# Line 873  public class BasicScrollBarUI extends Sc Line 873  public class BasicScrollBarUI extends Sc
873          trackRect = new Rectangle();          trackRect = new Rectangle();
874          thumbRect = new Rectangle();          thumbRect = new Rectangle();
875    
876          scrollTimer = new Timer(200, null);          scrollTimer = new Timer(50, null);
877          scrollTimer.setRepeats(true);          scrollTimer.setRepeats(true);
878    
879          installComponents();          installComponents();

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26