JDK-6251941 : PIT: setExtendedState method not working for undecorated frame
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_9
  • CPU: generic,sparc
  • Submitted: 2005-04-07
  • Updated: 2011-01-19
  • Resolved: 2005-04-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b35Fixed
Related Reports
Duplicate :  
Relates :  
Description
setExtendedState method does not work for an undecorated frame. setExtendedState(Frame.ICONIFIED) fails to iconify the frame. This occurs on Solaris and Linux with XToolkit and Motif. It works fine with the mustang b30

To reproduce:
1. Run the attached testcase
2. Click the Iconify button on the undecorated frame. With the PIT build, nothing happens, but with b30, the undecorated frame iconifies
###@###.### 2005-04-07 12:56:37 GMT
------------------------------------------------------------------------------
This affects all the JFrames created with DefaultLookAndFeelDecorated set to true. I am not able to minimize or maximize the frame.
###@###.### 2005-04-08 18:43:47 GMT

Comments
SUGGESTED FIX Store allowed MWM_FUNC_* separately from MWM_DECOR_* instead of calculating them on-the-fly. That would allow us to control both decorated and undecorated frames and dialogs separately. ###@###.### 2005-04-08 16:43:03 GMT
08-04-2005

EVALUATION Regression, caused by the fix for 6176507. In that fix there are some changes in XWM.java, in particlular - MWM_FUNC_MINIMIZE is set up only for those toplevels, that have MWM_DECOR_MINIMIZE. As the undecorated frames have no decorations at all, MWM_FUNC_MINIMIZE was disabled for them, and that leads to some WMs do not allow to iconify such frames (Metacity). The same applies to MToolkit, as in the fix for 6176507 there were the same changes as in XToolkit. ###@###.### 2005-04-08 16:43:02 GMT
08-04-2005