🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: example tree cell renderers

#8200
From: Chris Haynes
Date: Thu, 12 Oct 2000 00:00
24 lines
1422 bytes
Try taking a look at the SampleTree example under the demo/jfc directory of
your SDK. It is an example of application that does its own rendering with
custom icons.

"Stephen" <stephen.gemmell@cadspace.com> wrote in message
news:39e1e7d7$0$23088$4db1788e@beta.news.uk.uu.net...
> 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: <sucq67n8n7bbb2@news.supernews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39e1e7d7$0$23088$4db1788e@beta.news.uk.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e74a9268da3a38d1
X-Google-Attributes: gid111d45,public
From: "Chris Haynes" <cmhaynes@mindspring.com>
Subject: Re: example tree cell renderers
Date: 2000/10/12
Message-ID: <sucq67n8n7bbb2@news.supernews.com>
X-Deja-AN: 680818240
References: <39e1e7d7$0$23088$4db1788e@beta.news.uk.uu.net>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: newsabuse@supernews.com
Organization: Posted via Supernews, http://www.supernews.com
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing