🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17077

Re: Adding nodes to JTree; progress (?)

#17077
From: Tad Frysinger
Date: Fri, 18 Dec 1998 00:00
25 lines
1463 bytes
In article <36782D7F.73D15BFB@cs.virginia.edu>, lcohen@cs.virginia.edu 
says...
> I have reset the test program (see prior message) so that the new node
> is added as the child of the selected node. In my example, a child of
> the root is "Metals", and that has been initialized with "Gold",
> "Silver", etc. If I double click "Metals", the new node "Fluids" is
> added to its children. If I select "Gold", it is added as a child of
> "Gold". Seems OK so far; but ...
> 
> I can't add a new node as a child of the root; just doesn't do it. Also,
> I can sometimes add "Fluids" as a child of a selection twice, but no
> more, and only sometimes.
> 
> My test program is using the DefaultMutableTreeNode.
> 
> All ideas welcomed. 
> 
Check out the SwingConnection site:

http://www.javasoft.com/products/jfc/tsc/index.html

And search for JTree examples.

Tad Frysinger
[TeamB]
Technical Details
Message-ID: <MPG.10e438368012fe4b989963@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3677EF96.BDBE2B67@cs.virginia.edu> <758s82$qss15@forums.borland.com> <3678172B.E65682F5@cs.virginia.edu> <36782D7F.73D15BFB@cs.virginia.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c4ccd4f3d2110752
X-Google-Attributes: gidf74b3,public
From: tfrysinger@earthlink.net (Tad Frysinger)
Subject: Re: Adding nodes to JTree; progress (?)
Date: 1998/12/18
Message-ID: <MPG.10e438368012fe4b989963@forums.borland.com>
X-Deja-AN: 423659483
References: <3677EF96.BDBE2B67@cs.virginia.edu> <758s82$qss15@forums.borland.com> <3678172B.E65682F5@cs.virginia.edu> <36782D7F.73D15BFB@cs.virginia.edu>
Organization: Freezone Enterprises
Newsgroups: borland.public.jbuilder.java.language