🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTree will multiple roots?

#11292
From: Rich Wilkman
Date: Wed, 16 Jun 1999 00:00
42 lines
1619 bytes
Arn:

They aren't multiple roots, but your top level children will look like
roots if you don't show the real root of the tree.  I don't know where I
saw this last, but it may be in the JTree tutorial on Javasoft.

-Rich

Arn Cota wrote:
> 
> I don't know if it would be considered multiple roots (probably) or no roots
> (probably not), but I want to construct a tree with that looks like this:
> 
> A
>     aa
> B
>     bb
> C
>     cc
> D
>     dd
> 
> DefaultTreeModel takes a single node as the root.  Do I need my own
> TreeModel class?
> 
> Thanks,
> Arn

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <3767BD44.1246954B@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7k8c24$moa10@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bacd7677d25fc30a
X-Google-Attributes: gid111d45,public
From: Rich Wilkman <rwilkman@inprise.com>
Subject: Re: JTree will multiple roots?
Date: 1999/06/16
Message-ID: <3767BD44.1246954B@inprise.com>
X-Deja-AN: 490280005
Content-Transfer-Encoding: 7bit
References: <7k8c24$moa10@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing