🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11182

Re: JTree Icons

#11182
From: Jonathan
Date: Tue, 06 Jul 1999 00:00
32 lines
1218 bytes
yes its called a

TreeCellRenderer  Interface


i.e. create a class which extends JLabel and implements TreeCellRenderer
interface

its that easy





Hakan UNLU wrote in message <7lpfi0$9b66@forums.borland.com>...
>I am writing a "Shedule" kind application.
>I need each node of a JTree component show a different icon so that user
can
>see if this node represents a "completed", "cancelled" or "failed" item.
>Is there a way for each node to have a different Icon?
>
>Thanks.
>
>--
>Hakan UNLU
>Hitit Computer Services
>-------------------------------------------------------------
>Visit my virtual bookstore at
>http://surf.to/hakan-books
>------------------------------------------------------------
>
>
Technical Details
Message-ID: <7lsdgr$c8m1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7lpfi0$9b66@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,eeb552d349200e1f
X-Google-Attributes: gid111d45,public
From: "Jonathan" <plaskowj@logica.com>
Subject: Re: JTree Icons
Date: 1999/07/06
Message-ID: <7lsdgr$c8m1@forums.borland.com>
X-Deja-AN: 497676073
References: <7lpfi0$9b66@forums.borland.com>
Organization: Another Netscape Collabra Server User
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing