Article View: borland.public.jbuilder.java.swing
Article #414Re: How to clear a tree to draw a new one
From: Magnus
Date: Tue, 03 May 2005 14:10
Date: Tue, 03 May 2005 14:10
26 lines
1921 bytes
1921 bytes
I got it to work I thought I could work with the Tree but realized that I need to work with the root node and the TreeModel. Magnus wrote: > Hi, > > I have a testprogram that get data from a JDataStore and build a tree > from that. > > As the root is the CEO in the organization. I have a list of CEOs in my > database and place them in a jComboBox. I have added an actionperformed > trigger to my ComboBox so that if a new CEO is selected I want to clear > out the tree (created in jbInit) and build a new one with new data from > my DB. > > I just can't find a way to empty the tree. > > Any help and/or pointers to this is appreciated. > > Magnus > > PS. I have got most of my help so far from: > http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#create
Technical Details
Message-ID:
<42778618$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4276e2a6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,26a58f5d486881a6 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 03 May 2005 10:10:14 -0400 From: Magnus <magnus_bjorkman@iwon.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en, sv MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: How to clear a tree to draw a new one References: <4276e2a6$1@newsgroups.borland.com> In-Reply-To: <4276e2a6$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.76.179.221 Message-ID: <42778618$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115129368 67.76.179.221 (3 May 2005 07:09:28 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail