🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TreeModel

#1424
From: Ruben Misrahi
Date: Mon, 10 Nov 2003 12:27
15 lines
1450 bytes
I have a JTree that is associated with a TreeModel.
The TreeModel uses a TableDataSet to implement its methods:

At some point I modify the TableDataSet and I was expecting the JTree to be
modified as well, but this doesn't happen unless I call:
    jTree1.setModel(null);
    jTree1.setModel(tm); // tm is my implementation to TreeModel

Other than this, things work as expected.
Does anyone know why do I have to de-assign and then re-assign again my
JTree to a model? I would think that the great advantage of the model
approach was precisely that.
(JBuilder7).

Thanks
Technical Details
Message-ID: <3faf8427@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d6e73e2a3a1e06e4,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-11-10 04:31:46 PST
Reply-To: "Ruben Misrahi" <sofsoft@lek.net>
From: "Ruben Misrahi" <sofsoft@lek.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: TreeModel
Date: Mon, 10 Nov 2003 07:27:12 -0500
Lines: 17
Organization: Celerant
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: 68.76.86.35
Message-ID: <3faf8427@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068467239 68.76.86.35 (10 Nov 2003 04:27:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail