-
Bug
-
Resolution: Duplicate
-
P5
-
None
-
1.1.6, 5.0
-
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
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
- duplicates
-
JDK-5092228 Ability to remove minimize/maximize buttons from JDialog
-
- Open
-