Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to load/use default icons proveded by L & F?

 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have what is probably a dumb question. I'm creating a custom dialog, but would like to use the default dialog icons provided by the look and feel (you know: the standard question mark, exclamation point, etc.)

Dumb question: how do I go about loading these default icons? I can't find them anywhere, nor can I find instructions for doing this anywhere. I need a kick in the right direction, and I'd appreicate any help.

Thanks!
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are refering to the icons found in rt.jar: com/sun/swing/plaf/*/resources. From there you can load it as any other resource found in your classpath.

--
:alex |.::the_mindstorm::.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic