This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Can I disable the  ' X '  icon present on the top right corner of a JDialog box? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can I disable the  Watch "Can I disable the  New topic
Author

Can I disable the ' X ' icon present on the top right corner of a JDialog box?

Sumana Reddy
Greenhorn

Joined: Oct 28, 2000
Posts: 14
Hi,
I created a dialog box that extends from JDialog.I want to close the dialog box only when user selects one of the buttons present in the dialog box.I setDefaultCloseOption to DO_NOTHING_ON_CLOSE so that dialog box will not close when X icon (present on the top right corner of any JDialog) is clicked.
Can I disable this X icon, so that the user understands by seeing it that he cant click that button.If yes, how should I do that.
Regards, Sumana
 
jQuery in Action, 2nd edition
 
subject: Can I disable the ' X ' icon present on the top right corner of a JDialog box?
 
Similar Threads
JDialog
close option in JDialog
JDialog X Button
Close Dialog Box(Urgent!)
NX: URLy Bird 1.3.1 Suncertify.properties