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

Black stripe sometimes appears in JSplitPane component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.2.2
    • client-libs



      Name: iaR10016 Date: 02/10/2000



      Unneeded black stripe sometimes appears in JSplitPane component after some actions with divider.

      This effect appears in Linux 1.2.2 JDK and in Solaris 1.2.2 JDK.

      Frame window of the following test contains JSplitPane component with two JTextArea
      components. To reproduce the bug try to do the following:

      When cursor is Default and cursor is under the JSplitPane divider, move it to the botom side of
      the divider. At the moment when cursor reaches this position (at the very last moment when
      the cursor is Default or at the very first moment when the cursor is South Resize) click and move
      mouse down. Divider does not move. Then click on JSplitPane divider expandable button or resize
      frame window. You'll see that black stripe appears in the place where divider was located last
      time.

      --------------------test.java---------------------------------------------

      import javax.swing.*;
      import java.awt.*;
      import java.awt.event.*;

      public class test extends JFrame {
          public test() {
              super("JSplitPane test");
              JSplitPane p = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                 new JTextArea("JTextArea1"), new JTextArea("JTextArea2") );
              p.setOneTouchExpandable(true);
              getContentPane().add( p, BorderLayout.CENTER );
          }

          public static void main(String[] args) {
              JFrame frame = new test();
              frame.setSize(new Dimension(200,300));
              frame.setVisible(true);
          }
      }

      ======================================================================

      ======================================================================

            svioletsunw Scott Violet (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: