jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes close option in JDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "close option in JDialog" Watch "close option in JDialog" New topic

close option in JDialog

Ling Chung
Ranch Hand

Joined: Mar 29, 2004
Posts: 39
Hi there,
how can i provide a JDialog that doesn't have a close option (the 'x' in the top right corner of the frame)?
Thanks for the help!!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

No, but you can make it so that the x doesn't do anything.
The other option is you could just use a JWindow which most people use for a splash screen as it has not "Title Bar" at all.

GenRocket - Experts at Building Test Data
I agree. Here's the link: http://aspose.com/file-tools
subject: close option in JDialog
It's not a secret anymore!