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

unix: Cursor disappears in JSplitPane component after the component resizing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs



      Name: iaR10016 Date: 09/11/2000



      JDK version:
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-b17)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-b17, mixed mode)

      The following test example demonstrates unexpected JSplitPane component behaviour.
      To reproduce the bug please do the following steps:

      Enter top JTextArea component and type some text. Then resize tested frame window.
      The cursor becomes invnsible after such actions. If you then resize the tested frame
      once more, the cursor appears again and then never dissapears.

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

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

      public class test extends JFrame {
        public static void main(String[] args) {
          JFrame frame = new test();
          JSplitPane splitPane = new JSplitPane( JSplitPane.VERTICAL_SPLIT, new JTextArea(), new JButton("I'm Button") );
          splitPane.setDividerLocation(200);
          splitPane.setPreferredSize(new Dimension(500, 300));
          frame.getContentPane().add(splitPane, BorderLayout.CENTER);
          frame.pack();
          frame.setVisible(true);
         }
      }

      ---------------------------------------------------------------------------------

      Please note that this efect is present only for the JSplitPane component. For example,
      the following code demonstrates correct cursor behaviour:

      ------------------------- test1.java --------------------------------------------

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

      public class test1 extends JFrame {
        public test1() {
          super("JTextArea test");
          getContentPane().add(new JTextArea());
         }
        public static void main(String[] args) {
          JFrame frame = new test1();
          frame.setSize(new Dimension(500, 300));
          frame.setVisible(true);
         }
      }

      ---------------------------------------------------------------------------------

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: