File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic