-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b17
-
x86
-
windows_xp
-
Not verified
I am setting the maximized bounds of a frame to 0,0,300,300 and setting the focusable window state to false. I have set the frame state to MAXIMIZED_BOTH by calling setExtendedState(). When I move the cursor to the edges/border of the frame, i don't see any change in the cursor when the frame is in maximized state. But when I still click on the edges/border of the frame and drag the mouse, the frame is getting resized. Typically a maximized frame is not supposed to be resizable. The behavior seems to be fine when setFocusableWindowState is set to true.
This is noticed only on Win32 platforms right from JDK1.4.2 and not occuring on 1.4.1, 1.4. Hence this is a regression introduced in 1.4.2.
I have attached a sample testcase. Execute the application as follows.
java WindowStateTest <0/1>
0 - set focusable window state to true
1 - set focusable window state to false
Pass "1" as the argument. A frame will be shown. Click on the border and try resizing it. If it gets resized, the bug is reproduced.
This is not reproducible on Solaris9 with CDE/GNOME.
This is noticed only on Win32 platforms right from JDK1.4.2 and not occuring on 1.4.1, 1.4. Hence this is a regression introduced in 1.4.2.
I have attached a sample testcase. Execute the application as follows.
java WindowStateTest <0/1>
0 - set focusable window state to true
1 - set focusable window state to false
Pass "1" as the argument. A frame will be shown. Click on the border and try resizing it. If it gets resized, the bug is reproduced.
This is not reproducible on Solaris9 with CDE/GNOME.
- relates to
-
JDK-5053388 Non-focusable windows implementation should be revisited
- Closed
-
JDK-6581927 REG : Non focusable frame can be minimized to very small & Frame icon can be seen on frame buttons.
- Closed