🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jbcl.control.TreeControl

#9844
From: Hycel
Date: Sat, 08 Jan 2000 00:00
39 lines
1741 bytes
Thank you Paul Furbacher, for your suggestion.

Had I found the BasicTreeContainer, I would not have had to write my own.
However, myTreeControl does work fine.  And it was a good chance for me to
get a more comfortable understanding of Java.  But myTreeControl is not the
problem that I am having.  Perhaps I confused you with too much information.

I simply want to be able to do a search in the treeControl and have the
treeControl go to found node on the screen as it's selected item and expand
it's children.

Example:  A treeControl has four nodes as the root's children AA,AB,AC and
AD.  Node AB has two children, ABA and ABB.  Node ABA has three children
ABAA, ABAB and ABAC.  The treeControl is collapsed so that only the root is
showing. A treeControl.find('ABA') is performed.  How do I get the
treeControl to now select node ABA and expand at node ABA?

Before search:

+Root

After search:

-Root
     AA
    -AB
>         -ABA
                  ABAA
                  ABAB
                  ABAC
            ABB
     AC
     AD

Thank you for any help you can offer,

Hycel
hycel@mediaone.net
hycel@email.msn.com
Technical Details
Message-ID: <857ipi$sv210@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <852590$q6i2@bornews.borland.com> <3876BFC7.272A0E6E@bilbo.bio.purdue.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,83ae6506ed959249
X-Google-Attributes: gid111d45,public
From: "Hycel" <hycel@mediaone.net>
Subject: Re: jbcl.control.TreeControl
Date: 2000/01/08
Message-ID: <857ipi$sv210@bornews.borland.com>
X-Deja-AN: 569984319
References: <852590$q6i2@bornews.borland.com> <3876BFC7.272A0E6E@bilbo.bio.purdue.edu>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing