🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTree Directory System

#903
From: seung_shin
Date: Wed, 17 Nov 2004 20:42
27 lines
1359 bytes
I am new to using JTree in JAVA.  I implemented my own FileSystemModel
that implements TreeModel.  It displays directories only in the file
system.  It works fine except I get

C:\Mailbox
   C:\Mailbox\Inbox
   C:\Mailbox\Sentbox
   C:\Mailbox\Savedbox
       C:\Mailbox\Savedbox\Notes


How and where do I change it so it will display

Mailbox
   Inbox
   Sentbox
   Savedbox
       Notes


Also it displays the tree collapsed when I run it.  I can expand the
tree by click on the node but I would like to have an expanded tree as
a default.

Thanks for help in advance~

Seung
Technical Details
Message-ID: <7e077841.0411171242.478d2d95@posting.google.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,a31fddd89892194a,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!not-for-mail
From: miditto@yahoo.com (seung_shin)
Newsgroups: borland.public.jbuilder.java.swing
Subject: JTree Directory System
Date: 17 Nov 2004 12:42:49 -0800
Organization: http://groups.google.com
Lines: 27
Message-ID: <7e077841.0411171242.478d2d95@posting.google.com>
NNTP-Posting-Host: 157.127.124.141
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1100724169 22946 127.0.0.1 (17 Nov 2004 20:42:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 17 Nov 2004 20:42:49 +0000 (UTC)