Article View: borland.public.jbuilder.java.swing
Article #1526Re: displaying child nodes on demand
From: Tor Iver Wilhelmsen (TeamB)
Date: Sun, 26 Oct 2003 07:51
Date: Sun, 26 Oct 2003 07:51
13 lines
1441 bytes
1441 bytes
"Alan Shiers" <ashiers@hfx.eastlink.ca> writes: > This method does what it is supposed to, however, once it has > populated the parent node, I expected the JTree to display the > nodes. This is not happening. Can someone please explain how I get > the JTree to then display the child nodes. You need to tell the view. In the model, call fireTreeStructureChanged() for the TreePath down to where they were inserted. (To get the fire* methods generated for you, use the BeansExpress events tab and click TreeModel in the list of events to fire.)
Technical Details
Message-ID:
<u3cdgqvx4.fsf@ergo.no>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-mailReferences:
<3f9ae29b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,63f1d22919caaa01 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-10-26 01:08:51 PST Sender: towi@SDSA3850 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: displaying child nodes on demand References: <3f9ae29b$1@newsgroups.borland.com> From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB)) Date: 26 Oct 2003 08:51:03 +0100 Message-ID: <u3cdgqvx4.fsf@ergo.no> Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 139.105.7.229 X-Trace: newsgroups.borland.com 1067154663 139.105.7.229 (26 Oct 2003 00:51:03 -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