Wraparound bug in JScrollBar for large maximum value

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.1
    • Component/s: client-libs
    • None
    • beta
    • generic
    • generic

      When a JScrollBar's maximum value is Integer.MAX_VALUE, clicking on the
      down/right arrow while the thumb is at the maximum position on the track causes
      the thumb to jump to the minimum position because of integer wraparound. This
      bug was discovered while porting some AWT code to Swing; the problem does not
      occur with java.awt.Scrollbar.

      See attached test case.

            Assignee:
            Scott Violet (Inactive)
            Reporter:
            Kenneth Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: