This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Can i add a radio button to a JOptionPane?? 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 "Can i add a radio button to a JOptionPane??" Watch "Can i add a radio button to a JOptionPane??" New topic
Author

Can i add a radio button to a JOptionPane??

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hii everybody,
I've got a problem here. Can i add a radio button to a JOptionPane??. If possible, how do i do that??
Regards
....saj
SAFROLE YUTANI
Ranch Hand

Joined: Jul 06, 2001
Posts: 257
Just look at the documentation for JOptionPane. You'll find a standard creation pattern (toward the end of the class description) on how to create a JOptionPane directly. You can then customize the dialog as you wish.
SAF
 
Consider Paul's rocket mass heater.
 
subject: Can i add a radio button to a JOptionPane??
 
Similar Threads
JRadiobutton problem
Radio buttons
Selected radio button value to be send to action class
Button Group
Associating button with text field