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

JScrollBars do not respond to arrow keys or the numeric keypad.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.2.2
    • client-libs
    • None
    • kestrel
    • sparc
    • solaris_2.6


      The javax.swing.JScrollBar's in the JCK test api/javax_swing/interactive/JScrollBarTests
      interact with the keyboard differently from ordinary java.awt.Scrollbar's do.

      When running the Scrollbar test cases ScrollbarTest0001 and ScrollbarTest0002
      (1) mouse click on the Scrollbar's so that they have the focus and leave the
          mouse cursor on the Scrollbar so that the Scrollbar keeps the focus
      (2) Try various keyboard operations. My keyboard allows for 24 different
          operations (ignoring ALT):
            (a) Non-numeric left arrow
            (b) Non-numeric right arrow
            (c) Non-numeric up arrow
            (d) Non-numeric down arrow
            (e) CTRL-(Non-numeric left arrow)
            (f) CTRL-(Non-numeric right arrow)
            (g) CTRL-(Non-numeric up arrow)
            (h) CTRL-(Non-numeric down arrow)
            (i) Non-numeric Home
            (j) Non-numeric End
            (k) Non-numeric PageUp
            (l) Non-numeric PageDown
            (m) Numeric left arrow
            (n) Numeric right arrow
            (o) Numeric up arrow
            (p) Numeric down arrow
            (q) CTRL-(Numeric left arrow)
            (r) CTRL-(Numeric right arrow)
            (s) CTRL-(Numeric up arrow)
            (t) CTRL-(Numeric down arrow)
            (u) Numeric Home
            (v) Numeric End
            (w) Numeric PageUp
            (x) Numeric PageDown
      Do the same for the JScrollBar's in the test JScrollBarTests. None of
      the JScrollBar's recognize keyboard input.

      #!/bin/ksh
      JDK=/net/mulder.eng/export/mulder3/jdk12x/`/bin/uname -p`/jdk1.2.2_D
      #JDK=/usr/java1.2
      #JCK=/net/ultralynx.eng/export/kumarsv/jck/JCK-12a-O
      JCK=/net/ultralynx.eng/export/kumarsv/jck/JCK-runtime-api-12a
      PATH=${JDK}/bin:/usr/dt/bin:/usr/bin:/bin:/usr/openwin/bin
      LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib
      CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
      THREADS_FLAG=native
      export PATH
      export LD_LIBRARY_PATH
      export THREADS_FLAG
      export CLASSPATH
      java -version
      #
      if [ ! -f ScrollbarTests.html ]; then
        cp ${JCK}/tests/api/java_awt/interactive/ScrollbarTests.html .
      fi
      if [ ! -f ScrollbarTests.java ]; then
        cp ${JCK}/tests/api/java_awt/interactive/ScrollbarTests.java .
      fi
      if [ ! -f JScrollBarTests.html ]; then
        cp ${JCK}/tests/api/javax_swing/interactive/JScrollBarTests.html .
      fi
      if [ ! -f JScrollBarTests.java ]; then
        cp ${JCK}/tests/api/javax_swing/interactive/JScrollBarTests.java .
      fi
      #javac -d . ScrollbarTests.java
      java -Djava.compiler=sunwjit javasoft.sqe.tests.api.java.awt.interactive.Scrollbar.ScrollbarTests -TestCaseID ScrollbarTest0001
      java -Djava.compiler=sunwjit javasoft.sqe.tests.api.java.awt.interactive.Scrollbar.ScrollbarTests -TestCaseID ScrollbarTest0002
      #javac -d . JScrollBarTests.java
      java -Djava.compiler=sunwjit javasoft.sqe.tests.api.javax.swing.interactive.JScrollBar.JScrollBarTests -TestCaseID JScrollBarTest0001

      allan.jacobs@Eng 1999-01-28

            svioletsunw Scott Violet (Inactive)
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: