🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTree question

#13296
From: Simon Andersson
Date: Thu, 20 Aug 1998 00:00
13 lines
892 bytes
Hi.

I want a JTree to display different icons for different objects. The icons
are not dependent of the state of the node e.g. expanded or not, so I don't
want to use the BasicTreeCellRenderer.

I had a look at the BasicTreeCellRenderer to find out how to write my own
TreeCellRenderer. The problem is that I can't see where the actual painting
of the icon occurs.

If someone has done this I would be glad to get some help.

thanks, Simon
Technical Details
Message-ID: <6rgpfb$8m8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bd66362238088bed,start
X-Google-Attributes: gid111d45,public
From: "Simon Andersson" <simon@acacia.se>
Subject: JTree question
Date: 1998/08/20
Message-ID: <6rgpfb$8m8@forums.borland.com>
X-Deja-AN: 382939183
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4