Article View: borland.public.jbuilder.java.swing
Article #12262Re: JTree problem - adding nodes after root is displayed
From: Torgeir Veimo
Date: Mon, 08 Feb 1999 00:00
Date: Mon, 08 Feb 1999 00:00
16 lines
1096 bytes
1096 bytes
Tom Ranz wrote: > > Hi, > > I have noticed when trying to add child nodes to an existing and > displayed root node multiple times that the new child nodes are added to > the root node but I cannot get them to display. You must inform the tree model that nodes were inserted. Use the fireTreeNodesInserted or something similar on either DefaultMutableTreeModel or DefaultTreeModel. You can get the model if you created the JTree with a node by using getModel() on the JTree instance I believe. -- -Torgeir
Technical Details
Message-ID:
<36BF7370.6E0F3DFA@vertech.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36BF42DD.6CAA7C6A@mindspring.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b6c9cb4d911d55be X-Google-Attributes: gid111d45,public From: Torgeir Veimo <torgeir.veimo@vertech.no> Subject: Re: JTree problem - adding nodes after root is displayed Date: 1999/02/08 Message-ID: <36BF7370.6E0F3DFA@vertech.no> X-Deja-AN: 442143280 Content-Transfer-Encoding: 7bit References: <36BF42DD.6CAA7C6A@mindspring.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: SevenMountains AS Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing