🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTree - expanding multiple levels

#7946
From: Ali Demir
Date: Mon, 13 Nov 2000 00:00
14 lines
1096 bytes
I am trying to automatically expand the child nodes when the user clicks and
expands a parent node.

On treeExpanded event handler, I try to expand the children using expandPath
for each of them. Nothing happens.

Before the parent is expanded, its children's children are not loaded, but
children's isLeaf() methods report false; Thus, in the treeExpanded event
handler, I do load the children's children and they are available to be
displayed.

Has anyone ever tackled with a problem like this? I will appreciate any
ideas, examples, tips. Thank you.
Ali.
Technical Details
Message-ID: <3a1074ca$1_2@dnews>
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,182e05e01b8f6cb3,start
X-Google-Attributes: gid111d45,public
From: "Ali Demir" <demir.4@osu.edu>
Subject: JTree - expanding multiple levels
Date: 2000/11/13
Message-ID: <3a1074ca$1_2@dnews>
X-Deja-AN: 693264477
X-Trace: 13 Nov 2000 15:10:02 -0800, 192.147.88.2
X-MSMail-Priority: Normal
X-Priority: 3
Reply-To: "Ali Demir" <demir.4@osu.edu>
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400