-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
5.0
-
x86
-
windows_2000
Name: gm110360 Date: 07/12/2004
FULL PRODUCT VERSION :
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Cursor doesn't change back to the default cursor after resizing frame.
This looks like it is the same bug as bugs: 4307932, 4484781, 4976364,
however it still exists in 1.5.0-beta2 and is easily reproducable on windows 2000.
When resizing a JFrame with Toolkit.getDefaultToolkit().setDynamicLayout(true); and JFrame.setDefaultLookAndFeelDecorated(true); if the JFrame takes a while to do it's layout then the cursor never gets changed back to the default cursor.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run code
resize the bottom or right of the frame by about a cm, then move the cursor to the middle of the frame
notice that after the layout has completed the cursor remains as the risize cursor
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the cursor to change back to the default cursor
ACTUAL -
the cursor remains as the risize cursor
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
public class Test {
public static void main(String[] args) {
Toolkit.getDefaultToolkit().setDynamicLayout(true);
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame();
frame.setContentPane(new Container() {
public void doLayout() {
try {
Thread.sleep(1000);
}
catch (InterruptedException ex) {
}
super.doLayout();
}
});
frame.setSize(500, 500);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
---------- END SOURCE ----------
(Incident Review ID: 285616)
======================================================================
FULL PRODUCT VERSION :
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Cursor doesn't change back to the default cursor after resizing frame.
This looks like it is the same bug as bugs: 4307932, 4484781, 4976364,
however it still exists in 1.5.0-beta2 and is easily reproducable on windows 2000.
When resizing a JFrame with Toolkit.getDefaultToolkit().setDynamicLayout(true); and JFrame.setDefaultLookAndFeelDecorated(true); if the JFrame takes a while to do it's layout then the cursor never gets changed back to the default cursor.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run code
resize the bottom or right of the frame by about a cm, then move the cursor to the middle of the frame
notice that after the layout has completed the cursor remains as the risize cursor
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the cursor to change back to the default cursor
ACTUAL -
the cursor remains as the risize cursor
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
public class Test {
public static void main(String[] args) {
Toolkit.getDefaultToolkit().setDynamicLayout(true);
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame();
frame.setContentPane(new Container() {
public void doLayout() {
try {
Thread.sleep(1000);
}
catch (InterruptedException ex) {
}
super.doLayout();
}
});
frame.setSize(500, 500);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
---------- END SOURCE ----------
(Incident Review ID: 285616)
======================================================================
- relates to
-
JDK-4976364 Cursor changes when using setWindowDecorationStyle method
- Closed