🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using a Tree Structure and Collections

#10231
From: Jeff Marendo
Date: Mon, 01 Nov 1999 00:00
14 lines
1343 bytes
Hello,

I'm trying to get a handle on using the JTree and possibly the TreeSet
class.  What I'm trying to do is to retrieve a number of reports from a
database that a particular user would have registered to him or her.  I'm
making the function to pass all of the required info, but I'm a bit unclear
how to read the results into the JTree.  I'm even more unclear b/c there's
some CORBA stuff involved, but my primary concern is below.

I keep thinking I need to make my function with a return type that is a
collection of say, String; but, I'm not sure.  I think my main question is:
can I retrieve the reports directly into the tree structure or do I have to
hold them in a temporary collection(like maybe TreeSet) and then put them
into the tree structure?  Any suggestions?  Thank you.
Technical Details
Message-ID: <7vkhqp$44m8@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,d6916741650cc1be,start
X-Google-Attributes: gid111d45,public
From: "Jeff Marendo" <marendoj@commos.com>
Subject: Using a Tree Structure and Collections
Date: 1999/11/01
Message-ID: <7vkhqp$44m8@forums.borland.com>
X-Deja-AN: 543156069
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: CommTech Corporation
X-MSMail-Priority: Normal
Reply-To: "Jeff Marendo" <marendoj@commos.com>
Newsgroups: borland.public.jbuilder.java.swing