Kirubakaran-S schrieb:

>   renderer.setLeafIcon(new ImageIcon("leaf.ico")) ;
>   renderer.setClosedIcon(new ImageIcon("closed.ico")) ;
>   renderer.setOpenIcon(new ImageIcon("open.ico")) ;
>
>   The above lines were taken from the Sun Java Tutorial. The icons are in
> the same directory in which the .java and .class files exists. What is the
> problem? The default icons are not displayed but these icons are also not
> displayed.

The extension of the files seems to indicate that you
use windows icon files. IMHO, gifs or jpegs are a
better choise - in fact they work for me.

--
Christian Pesch - Software Engineer
[EMAIL PROTECTED] - fon +49.40.325587.505  fax .999
CoreMedia AG - www.coremedia.com - 0700-COREMEDIA
Erste Brunnenstraße 1, 20459 Hamburg, Germany

CoreMedia - Think ahead! We're there.



_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to