Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4977483

WindowStateEvts not triggered properly on Sol when iconifying from maximized

XMLWordPrintable

    • 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.

            anthony Anthony Petrov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: