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

Problem rendering scrollbar in JScrollPane with rowheaders and/or columnheaders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1
    • 1.4.0
    • client-libs
    • hopper
    • x86
    • windows_2000
    • Verified



      Name: ddT132432 Date: 09/12/2001


      java version "1.4.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
      Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

      Take entire JScrollPane demo from:

      http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html

        Use the first demo code on the URL (ScrollDemo.java).

      Modify ScrollDemo.java's main:

          public static void main(String s[]) {
              JFrame frame = new JFrame("ScrollDemo");
              frame.addWindowListener(new WindowAdapter() {
                  public void windowClosing(WindowEvent e) {
                      System.exit(0);
                  }
              });

              JSplitPane splitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
              splitter.setTopComponent(new ScrollDemo());
              splitter.setBottomComponent(new JButton("Press me!"));

              frame.setContentPane(splitter);
              frame.pack();
              frame.setVisible(true);
          }

      Run the application (I have tested and found the problem with J2SE 1.3.X).
      Resize the window if necessary to get vertical and horizontal scrollbars.
      Use the splitter to make the JScrollPane small enough that the vertical
      scrollbar goes over the rowheader area. Notice that the rowheader is painted
      between the edge of the scrollbar and the splitter bar. The same problem holds
      true of the column headers..
      (Review ID: 131568)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            ddressersunw Daniel Dresser (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: