Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JOptionPane using Warning icon  RSS feed

 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's included in the Java look-and-feel. Consult the Java Tutorial chapter on How to Make Dialogs for examples.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!