wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Urgent (Removing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Urgent (Removing "OK" button from JOptionpane)" Watch "Urgent (Removing "OK" button from JOptionpane)" New topic
Author

Urgent (Removing "OK" button from JOptionpane)

Mahua Mazumdar
Greenhorn

Joined: Jul 12, 2004
Posts: 1
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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent (Removing "OK" button from JOptionpane)
 
Similar Threads
how to manage the dissmissal of joptionpane when any button is clicked
Problem with keystrokes and JOptionPane
JOptionPane behavior
partial display of JOptionPane
Disposing JOptionPane dialog box