wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes JOptionPane using Warning icon 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 "JOptionPane using Warning icon" Watch "JOptionPane using Warning icon" New topic
Author

JOptionPane using Warning icon

Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
I'd like to use the warning icon on a JOptionPane. I need to give my user a warning, but I also need to give him the option to continue or stop. Therefore, I chose the JOptionPane over the JWarningPane. Where can I find the warning icon to use with the JOptionPane?
Thanks.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

It's included in the Java look-and-feel. Consult the Java Tutorial chapter on How to Make Dialogs for examples.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: JOptionPane using Warning icon
 
Similar Threads
JOptionPane
Question about JOptionPane
How to disable coffee cup icon and the menu that comes with it?
How To Change the Title Icon of JoptionPane/dialog
JDialogBox