This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where are the DefaultTreeCellRenderer tree icons stored on computer?

 
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
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!