/[classpath]/classpath/java/awt/Scrollbar.java
ViewVC logotype

Diff of /classpath/java/awt/Scrollbar.java

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

revision 1.12 by mkoch, Sat Feb 15 09:29:17 2003 UTC revision 1.13 by tromey, Wed Feb 19 03:50:33 2003 UTC
# Line 390  setValues(int value, int visibleAmount, Line 390  setValues(int value, int visibleAmount,
390    if (value > maximum)    if (value > maximum)
391      value = maximum;      value = maximum;
392    
393    if (visibleAmount > value)    if (visibleAmount > maximum - minimum)
394      visibleAmount = value;      visibleAmount = maximum - minimum;
395    
396    this.value = value;    this.value = value;
397    this.visibleAmount = visibleAmount;    this.visibleAmount = visibleAmount;
# Line 664  processEvent(AWTEvent event) Line 664  processEvent(AWTEvent event)
664  protected void  protected void
665  processAdjustmentEvent(AdjustmentEvent event)  processAdjustmentEvent(AdjustmentEvent event)
666  {  {
667      value = event.getValue();
668    if (adjustment_listeners != null)    if (adjustment_listeners != null)
669      adjustment_listeners.adjustmentValueChanged(event);      adjustment_listeners.adjustmentValueChanged(event);
670  }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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