-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
Fix Understood
-
generic
-
generic
When JInternalFrame is set to iconified, before adding to the desktop shows very strange behavior.
* A "to-normal" icon is shown as the first control-button icon. This should never happen, since first control-button is always for minimizing.
* Even when the frame is clicked, it will not become active. On clicking first control-button once, the normal behavior is restored.
* InternalFrame is shown in normal state even though frameOpened & frameIconified events are received.
Everything works fine if setIcon is invoked after adding to desktop.
Refer to attached screenshot.
Compile and run JInternalFrameTest and refer to behavior of "Internal Frame 1"
* A "to-normal" icon is shown as the first control-button icon. This should never happen, since first control-button is always for minimizing.
* Even when the frame is clicked, it will not become active. On clicking first control-button once, the normal behavior is restored.
* InternalFrame is shown in normal state even though frameOpened & frameIconified events are received.
Everything works fine if setIcon is invoked after adding to desktop.
Refer to attached screenshot.
Compile and run JInternalFrameTest and refer to behavior of "Internal Frame 1"
- relates to
-
JDK-4769772 JInternalFrame.setIcon(true) before JDesktopPane.add(JIF) causes wrong state
- Resolved