-
Bug
-
Resolution: Fixed
-
P3
-
9
-
Windows 10
-
b131
-
windows
On Windows, run this code:
Frame frame = new Frame("frame");
frame.setBounds(100,100, 200,200);
frame.setVisible(true);
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
frame.setExtendedState(Frame.ICONIFIED);
System.out.println("Extended state: "+frame.getExtendedState());
The functionality works fine, Frame will be iconified, but the final extended state will be MAXIMIZED_BOTH | ICONIFIED, not just ICONIFIED.
This seems to be a regression fromJDK-4977491 fixed in JDK 7. Argumentation there was "... setExtendedState() should just set provided state, do not try to combine
it with current state." -- which sounded reasonable and was implemented if I read java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java right.
Frame frame = new Frame("frame");
frame.setBounds(100,100, 200,200);
frame.setVisible(true);
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
frame.setExtendedState(Frame.ICONIFIED);
System.out.println("Extended state: "+frame.getExtendedState());
The functionality works fine, Frame will be iconified, but the final extended state will be MAXIMIZED_BOTH | ICONIFIED, not just ICONIFIED.
This seems to be a regression from
it with current state." -- which sounded reasonable and was implemented if I read java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java right.
- duplicates
-
JDK-8148571 Curious failure of java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java
-
- Closed
-
- relates to
-
JDK-8037575 JFrame on Windows doesn't animate when setting ICONIFIED state
-
- Resolved
-
-
JDK-4977491 Window state changes without notifying the listener on Win32
-
- Closed
-