🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.gui
Article #37

Re: Spooky JTree problem

#37
From: Raffael Herzog
Date: Fri, 17 Nov 2000 00:00
24 lines
1649 bytes
On Fri, 17 Nov 2000, janc2000@deja.com wrote:

> Hi,
> 
> I've created a JFrame based window which contains a JTree object
> (I'm using JBuilder 4).  To my big surpirse this JTree has a root
> node with 3 subnodes named "colors", "sports" and "food", although I
> have not added any code to populate the three.  I've done a scan of
> all my sources on this names and could not find any of them.
> 
> Anybody knows what is going on?

This is the default content of JTree. Usually, you give a new root
node to the constructor of the tree or set it later using
setRoot(). If you don't the JTree will have the content you
discribed. This is very practical when you draft GUIs because you
don't have to populate the tree to see that it is a tree.


-- 
Raffael Herzog
herzog@raffael.ch

May the penguin be with you!
Technical Details
Message-ID: <m3hf56hg7n.fsf@raffi.k7>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3a152ef5$0$20284$73bec57d@news.be.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a39329ae181d0717
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,a39329ae181d0717
X-Google-Attributes: gid10fd6d,public
From: Raffael Herzog <herzog@raffael.ch>
Subject: Re: Spooky JTree problem
Date: 2000/11/17
Message-ID: <m3hf56hg7n.fsf@raffi.k7>
X-Deja-AN: 694732200
References: <3a152ef5$0$20284$73bec57d@news.be.uu.net>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sunrise.ch
X-Trace: news1.sunrise.ch 974468239 29969 194.230.203.168 (17 Nov 2000 13:37:19 GMT)
Organization: raffael.ch / Linux Java Development
Mime-Version: 1.0
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.4
NNTP-Posting-Date: 17 Nov 2000 13:37:19 GMT
Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing