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

Component JSplitPane does not draw cursor image correctly.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_7

      Description



      Name: kaC94536 Date: 01/21/2000



      Component JSplitPane does not draw cursor image correctly during divider dragging.
      When you drag split divider, cursor image is South Resize or North resize usually.
      Frame window of the following test contains a JSplitPane component with two text areas.
      To reproduce the effect try to do follow:

      When cursor is Default and cursor is under the JSplitPane divider, move cursor to the bottom side of
      divider. For the time cursor reaches this position, cursor image does not become South Resize yet.
      But now if you try to click mouse left button, you can drag divider up! In this case, when you
      click, sometimes cursor image becomes South Resize, sometimes remains Default.

      Such effect also shows when you move the cursor to the top side of the divider and drag divider down.

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

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

      public class test extends JFrame {

          public test() {
              super("JSplitArea cursor test");
              JSplitPane splitPane=new JSplitPane(JSplitPane.VERTICAL_SPLIT, new JTextArea(), new JTextArea());
              splitPane.setDividerLocation(20);
              splitPane.setPreferredSize(new Dimension(500, 300));
              getContentPane().add(splitPane, BorderLayout.CENTER);
          }

         public static void main(String[] args) {
              JFrame frame = new test();
              frame.addWindowListener(new WindowAdapter() {
                  public void windowClosing(WindowEvent e) {
                      System.exit(0);
                  }
              });
              frame.pack();
              frame.setVisible(true);
          }
      }

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

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

        Attachments

          Activity

            People

            • Assignee:
              xdengsunw Xianfa Deng (Inactive)
              Reporter:
              kanisimosunw Konstantin Anisimov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: