• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where are the DefaultTreeCellRenderer tree icons stored on computer?  RSS feed

 
savas karabuz
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Where are the icons used by DefaultTreeCellRenderer stored on computer?

Thanks in advance...

...Savas...
[ July 22, 2004: Message edited by: savas karabuz ]
 
Christian Cooper
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends upon which Look and Feel you are using.

If you are using the Metal L&F, the Icons will come from javax.swing.plaf.metal.MetalIconFactory where there is a whole heap of code that creates the icons using the Graphics.draw* functions.

Other L&F factories will do the same or may pick up files from the file system.

Quote from the header on MetalIconFactory:

"Factory object that can vend Icons appropriate for Metal.
These are used extensively in Metal via the defaults mechanism.
While other Look and Feels use GIFs for some of these, doing this
work in code facilitates things when switching to other Themes."

HTH
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!