Article View: borland.public.jbuilder.java.swing
Article #1524displaying child nodes on demand
From: Alan Shiers
Date: Sat, 25 Oct 2003 20:45
Date: Sat, 25 Oct 2003 20:45
19 lines
1587 bytes
1587 bytes
Hi there, I'm working on a client/server project where the client side app has a JTree. I am trying to set up a TreeModel so that it retrieves from the server app the names of the child nodes of a given node when the treeWillExpand(TreeExpansionEvent tee) method gets triggered. So far I've accomplished this. In my TreeModel class I have a method called: ReceiveChildrenFromServer(DefaultTreeNode parent, String ParentsWholePath, DataInputStream input) 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. Thanks, Alan
Technical Details
Message-ID:
<3f9ae29b$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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,63f1d22919caaa01,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-10-25 14:09:16 PST From: "Alan Shiers" <ashiers@hfx.eastlink.ca> Newsgroups: borland.public.jbuilder.java.swing Subject: displaying child nodes on demand Date: Sat, 25 Oct 2003 17:45:22 -0300 Lines: 21 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: 24.222.101.2 Message-ID: <3f9ae29b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067115163 24.222.101.2 (25 Oct 2003 13:52:43 -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