🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how many nodes that JTree support?

#1520
From: Kevin Dean
Date: Sat, 25 Oct 2003 15:27
30 lines
1886 bytes
JTree supports an unlimited number of nodes.  However, if you have thousands
of them all as the children of a single node, performance will suffer.

Another possible cause of the performance problem is that 5000 nodes may
take a considerable amount of memory.  You may want to consider rewriting
your TreeNode implementation to use some kind of disk-based access instead.

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Chris" <zerol@263.net> wrote in message
news:3f994daa@newsgroups.borland.com...
> Hi, all
>
> I'm have a small problem with JTree.
> When load 5000 nodes into a JTree, it's
> works terribly slow.
>
> any idea? or how many nodes that JTree support?
>
> TIA.
>
>
Technical Details
Message-ID: <3f9a96dc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f994daa@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,962f66eb2276150a
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-25 08:39:14 PST
From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <3f994daa@newsgroups.borland.com>
Subject: Re: how many nodes that JTree support?
Date: Sat, 25 Oct 2003 11:27:33 -0400
Lines: 32
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 142.240.200.10
Message-ID: <3f9a96dc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067095772 142.240.200.10 (25 Oct 2003 08:29:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail