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

Urgent (Removing "OK" button from JOptionpane)

 
Mahua Mazumdar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi freinds....
I am comming across a problem relating the default buttons of JOptionpane. I have created a panel which is being used numerous places.....The place where there is a Pop-Up dialog..I have passed the panel to the JOptionpane just...

My problem is ...JOptionpane provides default "OK" button..which is now getting shown in the dialog...

I want to remove/hide the "OK" button ....Can anyone plz help me in meeting my target....


With anticipation
M.M
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of passing the panel to a JOptionPane, pass it to a JDialog. You can set the JDialog to be modal if you need it to.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic