🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Possible to expand the root with no children???

#13238
From: Simon Andersson
Date: Mon, 24 Aug 1998 00:00
11 lines
958 bytes
Hi.

I'm using a JTree in which I don't want the root to be visible. But when I
add nodes I want them to be displayed immediately i.e. I want the root node
to be expanded. But it seems like I can't expand the root until I add a
child to it, which makes my app has to listen for nodes getting added to the
tree, so that I can expand the node after the first child has been added...
Is it really this bad (the JTree)? Generally I find the JTree very hard to
work with.

/ Simon
Technical Details
Message-ID: <6rrq6m$e895@forums.borland.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,13bfd369360e849,start
X-Google-Attributes: gid111d45,public
From: "Simon Andersson" <simon@acacia.se>
Subject: Possible to expand the root with no children???
Date: 1998/08/24
Message-ID: <6rrq6m$e895@forums.borland.com>
X-Deja-AN: 384186073
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing