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

No Way to Remove Close, Minimize, or Maximize Buttons

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1.6, 5.0
    • client-libs
    • generic, x86
    • generic, windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
      Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600] SP2

      A DESCRIPTION OF THE PROBLEM :
      While it is possible to disable the funcionality of the Close, Minimize and Maximize buttons, through code like

      setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

      this approach leaves the "X" button on the window.

      There ought to be a way to specify that I don't even want the "X" button to appear on a JFrame, but if there is a way, I cannot find it. "setUndecorated(true)" is not useful, because it removes ALL decorations from the window.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-03-30 23:35:42 GMT

            anthony Anthony Petrov (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: