File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 8710
    
    6

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JOptionPane using Warning icon
 
Similar Threads
Question about JOptionPane
How To Change the Title Icon of JoptionPane/dialog
JOptionPane
JDialogBox
How to disable coffee cup icon and the menu that comes with it?