🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Rendering

#9088
From: Shabber Abbas
Date: Tue, 23 May 2000 00:00
14 lines
1174 bytes
I am wanting to put some buttons on each of my tree nodes , I believe to
customize this I have made a a TreeNode class extending
DefaultMutableTreeNode, a Tree class, and a treeCellRendererClass,
however now i am confused.  Some references say to implement
TreeCellRenderer and implement the getCellRendererComponent Method,
however I am not sure how to accomplish that
also some books said to extend JComponent , and override the paint
method, even this is confusing.
Therefore any advice will be appreciated.
P.S. the confusing part is that they speak of treecellrenderers as
cellrenderers but do not explain thouroughly why it is only set to the
tree

Thanks
Technical Details
Message-ID: <392AB08F.7E8F162@codetech.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,8cfb10d94f0312a8,start
X-Google-Attributes: gid111d45,public
From: Shabber Abbas <shabber@codetech.com>
Subject: Rendering
Date: 2000/05/23
Message-ID: <392AB08F.7E8F162@codetech.com>
X-Deja-AN: 626341261
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing