🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7588

Re: JTree: updating the data

#7588
From: MarkW
Date: Tue, 12 Jun 2001 08:57
32 lines
1725 bytes
Hi Torsten,
tried that already: no luck!

Mark.

"Torsten Welches" <torsten.welches@who.cares.netcologne.de> schrieb im
Newsbeitrag news:3b25b46d$1_2@dnews...
>
> Mark,
>
> assuming your TreeModel is a DefaultTreeModel you can try
> model.reload();
>
> Torsten
>
> "MarkW" <xx@yy.com> wrote:
> >Hi people,
> >i�m using a descendant of JTree to display customer-info. Works fine
except
> >when I try to update the data. I tried just setting the model of the tree
> >with a new treemodel and also as another attempt using
> >root.removeAllChildren() and then appending the new nodes.
> >As a result I just get the "empty" nodes without a title. When I
doubleclick
> >on the nodes the title is then shown. I�ve tried repainting, updating the
> >tree, the panel on which the tree resides but without success!
> >
> >Anybody got an idea how to do this??
> >Mark
> >
> >
>
Technical Details
Message-ID: <3b25d94e_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3b20c4b1_1@dnews> <3b25b46d$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,f502df7c4b0a5f8a
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-12 02:14:37 PST
From: "MarkW" <xx@yy.com>
Newsgroups: borland.public.jbuilder.java.language
References:  <3b20c4b1_1@dnews>  <3b25b46d$1_2@dnews>
Subject: Re: JTree: updating the data
Date: Tue, 12 Jun 2001 10:57:18 +0200
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 149.225.130.80
Message-ID: <3b25d94e_1@dnews>
X-Trace: dnews 992336206 149.225.130.80 (12 Jun 2001 01:56:46 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews