🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTree: how can I make a childless node non-leaf

#13161
From: Frode Oldervoll
Date: Tue, 15 Sep 1998 00:00
6 lines
785 bytes
I want to make a childless node in a JTree a non-leaf, because I want to add
leafs to the node at runtime. How can I do this? I have tried to use
setAllowsChildren(true), but the childless nodes still becomes leaf nodes.

-Frode Oldervoll
Scientist at Christian Michelsen Research AS, Bergen, Norway
Technical Details
Message-ID: <6tlprd$rv12@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,e9d41362ca1830e1,start
X-Google-Attributes: gid111d45,public
From: "Frode Oldervoll" <Frode.Oldervoll@cmr.no>
Subject: JTree: how can I make a childless node non-leaf
Date: 1998/09/15
Message-ID: <6tlprd$rv12@forums.borland.com>
X-Deja-AN: 391339101
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing