-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2
-
beta
-
x86
-
linux
-
Not verified
Name: kaC94536 Date: 01/28/2000
Cursor does not become Default after some actions in JInternalFrame component as it is needed.
Frame window of the following test contains a JInternalFrame component.
Try to move mouse to the left, right or bottom JInternalFrame border. When cursor
becomes not Default, click and release mouse and move the mouse inside the JInternalFrame.
The cursor must becomes Default, but now it is not Default (it is South Resize, West Resize or
East resize).
--------------------test.java---------------------------------------------
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class test extends JFrame {
public test() {
super("JInternalFrame test");
getContentPane().add( new TestPanel(), 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.setSize(new Dimension(500,300));
frame.setVisible(true);
}
}
class TestPanel extends JPanel {
protected JInternalFrame aFrame;
public TestPanel() {
aFrame = new JInternalFrame("Test", true);
aFrame.getContentPane().add(new JLabel("I'm a JInternalFrame component!"));
add(aFrame);
}
}
======================================================================
======================================================================