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

Using a JTable or JScrollPane scrollbar garbles the JTable display.

XMLWordPrintable

    • 1.2.2
    • sparc
    • solaris_2.6


      The vertical scrollbar attached to a JTable does not work on sparc
      Solaris platforms. Using the scrollbar garbles the JTable text.

      Use the script below and the attached source code to bring up a JTable.
      There should be a pair of scrollbars, positioned side-by-side.
      Resize (using the Frame) vertically so that the interior (JTable) scrollbar
      disappears (by enlarging the Frame). Resize (using the Frame) vertically
      so that the interior (JTable) scrollbar reappears (by making the Frame smaller).
      Attempt to use the interior scrollbar.

      #!/bin/ksh
      JDK=/net/mulder.eng/export/mulder3/jdk12x/sparc/jdk1.2FCS_K
      JCK=/net/jde1.eng/export/jtech23/JCK-12a
      #JDK=/net/mulder.eng/export/mulder3/jdk12x/sparc/jdk1.2FCS_G
      #JCK=/net/jde1.eng/export/jtech16/jck12b4
      export PATH=${JDK}/bin:/usr/dt/bin:/usr/bin:/bin:/usr/openwin/bin
      export CLASSPATH=.:${JCK}/classes:${JCK}/javatest.jar
      if [ ! -f JTableTests.html ]; then
      cp ${JCK}/tests/api/javax_swing/interactive/JTableTests.html .
      #cp ${JCK}/tests/api/com_sun_java/swing/interactive/JTableTests.html .
      fi
      if [ ! -f JTableTests.java ]; then
      cp ${JCK}/tests/api/javax_swing/interactive/JTableTests.java .
      #cp ${JCK}/tests/api/com_sun_java/swing/interactive/JTableTests.java .
      fi
      javac -d . JTableTests.java
      java -verify javasoft.sqe.tests.api.javax.swing.interactive.JTable.JTableTests -TestCaseID JTableTest0001
      #java -verify javasoft.sqe.tests.api.com.sun.java.swing.interactive.JTable.JTableTests # -TestCaseID JTableTest0001


      allan.jacobs@Eng 1998-09-29

      June Zhong reports that the JCK tests
        api/javax_swing/interactive/JScrollPaneTests.html
      have been rewritten -- and that they exhibit this bug, too.


      allan.jacobs@Eng 1998-11-12

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: