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

Undecorated Frames cannot be shown initially iconified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.0
    • client-libs
    • 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)
      ======================================================================

            uwesunw Uwe Uwe (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: