-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.2
-
x86, sparc
-
linux, solaris_7
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);
}
}
======================================================================
======================================================================