Article View: borland.public.jbuilder.java.swing
Article #8262example tree cell renderers
From: Stephen
Date: Mon, 09 Oct 2000 00:00
Date: Mon, 09 Oct 2000 00:00
16 lines
1016 bytes
1016 bytes
Hi, I have a renderer for my JTree, that I use to set the icons for the nodes. It works fine until I try setting both the open and closed icons for each node, and also if I try to set the leaf dependant upon a condition. Once I add support for the additional icons, the icons all behave erratically. Does anyone have a simple cell renderer that sets icons for the nodes dependant upon the state of the node? i.e. a closed folder or an open folder icon? Cheers Stephen
Technical Details
Message-ID:
<39e1e7d7$0$23088$4db1788e@beta.news.uk.uu.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e74a9268da3a38d1,start X-Google-Attributes: gid111d45,public From: "Stephen" <stephen.gemmell@cadspace.com> Subject: example tree cell renderers Date: 2000/10/09 Message-ID: <39e1e7d7$0$23088$4db1788e@beta.news.uk.uu.net> X-Deja-AN: 679348987 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: 971106263 beta.news.uk.uu.net 23088 193.130.144.188 X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing