Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sumana Reddy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic