Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4367088

Wraparound bug in JScrollBar for large maximum value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.1
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: