aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane using Warning icon" Watch "JOptionPane using Warning icon" New topic

JOptionPane using Warning icon

Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 327
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?
Joe Ess

Joined: Oct 29, 2001
Posts: 9102

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

[How To Ask Questions On JavaRanch]
jQuery in Action, 2nd edition
subject: JOptionPane using Warning icon