-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
mantis
-
x86
-
windows_nt
Name: bsC130419 Date: 05/31/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
Undecorated frames cannot be programmatically iconified _before_
being shown. The code that follows shows that although the
frame is first iconified then shown, it gets shown in normal
state. Notice that everything works fine if the frame is
decorated.
The workaround is to first show the undecorated frame, then
programmatically iconify it.
//--------------------------------------------
import javax.swing.*;
public class Undec extends JFrame
{
public static void main(String args[])
{
new Undec();
}
public Undec()
{
setBounds(100, 100, 400, 250);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setUndecorated(true);
setState(ICONIFIED);
show();
}
}
//--------------------------------------------
(Review ID: 125291)
======================================================================
- relates to
-
JDK-7144049 [macosx] Undecorated frame set to ICONIFIED before setVisible is not iconic
-
- Open
-
-
JDK-7102299 javax.swing.JFrame.setExtendedState(Frame.ICONIFIED) does not work before setVisible(true)
-
- Closed
-