-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.3.0
-
x86
-
linux
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);
}
}
---------------------------------------------------------------------------------
======================================================================
- duplicates
-
JDK-4290675 Focus Management Enhancements
- Closed