🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding nodes to JTree; progress (?)

#17057
From: Leo Cohen
Date: Wed, 16 Dec 1998 00:00
24 lines
1409 bytes
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. 
-- 
Leo Cohen

116-1 Howard Drive
Charlottesville, VA  22903

804-243-8922 (UVA)
804-244-4648 (home)
804-244-7922 (fax)
lcohen@cs.virginia.edu
Technical Details
Message-ID: <36782D7F.73D15BFB@cs.virginia.edu>
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>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c4ccd4f3d2110752
X-Google-Attributes: gidf74b3,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: Re: Adding nodes to JTree; progress (?)
Date: 1998/12/16
Message-ID: <36782D7F.73D15BFB@cs.virginia.edu>
X-Deja-AN: 423024144
Content-Transfer-Encoding: 7bit
References: <3677EF96.BDBE2B67@cs.virginia.edu> <758s82$qss15@forums.borland.com> <3678172B.E65682F5@cs.virginia.edu>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language