-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
6
-
sparc
-
solaris_9
I have added a WindowStateListener to a frame. I am setting the state of the frame to 'MAXIMIZED_BOTH' and the frame gets maximized. Then I am calling setExtendedState(Frame.ICONIFIED) and the frame gets iconified. When this is executed on WinXP, the sequence of window state events triggered is as follows:
======= From Listener - Win XP =======================
OLD state: NORMAL
New state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
OLD state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
New state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ ICONIFIED
==============================================
The same application on solaris triggers the following sequence of events:
======= From Listener - Solaris 9 (GNOME2.0) =======
OLD state: NORMAL
New state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
OLD state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
New state: ICONIFIED
==============================================
I feel the event sequence triggered by WinXP is correct. Actually when iconifying a frame which is in maximized state, the new State should typically be MAXIMIZED + ICONIFIED. But on Solaris, it shows as 'ICONIFIED'.
Moreover, I tried executing this multiple times on Tiger as well as previous releases and the results seem to be inconsistant. I am surprised to get the same behavior as WinXP quite a few times on the previous releases (1.4) though i didn't get even once on Tiger - b32.
I have attached a sample testcase. Execute the sample testcase. If you get the results as mentioned above, then the bug is reproduced.
I tested this on Solaris Sparc 9 with GNOME2.0 desktop.
======= From Listener - Win XP =======================
OLD state: NORMAL
New state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
OLD state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
New state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ ICONIFIED
==============================================
The same application on solaris triggers the following sequence of events:
======= From Listener - Solaris 9 (GNOME2.0) =======
OLD state: NORMAL
New state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
OLD state: MAXIMIZED_BOTH MAXIMIZED_VERT MAXIMIZED_HORIZ
New state: ICONIFIED
==============================================
I feel the event sequence triggered by WinXP is correct. Actually when iconifying a frame which is in maximized state, the new State should typically be MAXIMIZED + ICONIFIED. But on Solaris, it shows as 'ICONIFIED'.
Moreover, I tried executing this multiple times on Tiger as well as previous releases and the results seem to be inconsistant. I am surprised to get the same behavior as WinXP quite a few times on the previous releases (1.4) though i didn't get even once on Tiger - b32.
I have attached a sample testcase. Execute the sample testcase. If you get the results as mentioned above, then the bug is reproduced.
I tested this on Solaris Sparc 9 with GNOME2.0 desktop.
- relates to
-
JDK-4977491 Window state changes without notifying the listener on Win32
-
- Closed
-