Article View: borland.public.jbuilder.java.language
Article #16808Re: JTree node icon
From: Tad Frysinger
Date: Wed, 13 Jan 1999 00:00
Date: Wed, 13 Jan 1999 00:00
16 lines
872 bytes
872 bytes
In article <76ve2f$cdn16@forums.borland.com>, plaskowj@logica.com says... > I want to change the icon representing the node at the bottom levels of my > JTree, how do i implement this? > > many thanks > > Jonathan > > > A simple way is to extend the default tree cell renderer (which itself is a JLabel), and have it test for a condition, and substitute the icon in the label as appropriate. Tad Frysinger [TeamB]
Technical Details
Message-ID:
<MPG.11066fa05208ca9798998e@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<76ve2f$cdn16@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9eb1117c9911f589 X-Google-Attributes: gidf74b3,public From: tfrysinger@earthlink.net (Tad Frysinger) Subject: Re: JTree node icon Date: 1999/01/13 Message-ID: <MPG.11066fa05208ca9798998e@forums.borland.com> X-Deja-AN: 432158494 References: <76ve2f$cdn16@forums.borland.com> Organization: Freezone Enterprises Newsgroups: borland.public.jbuilder.java.language