• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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::.
 
reply
    Bookmark Topic Watch Topic
  • New Topic