File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 9168

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]
I agree. Here's the link:
subject: JOptionPane using Warning icon
It's not a secret anymore!