🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to clear a tree to draw a new one

#412
From: Magnus
Date: Tue, 03 May 2005 02:32
19 lines
1643 bytes
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: <4276e2a6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed2.easynews.com!easynews.com!easynews!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

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,26a58f5d486881a6,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 02 May 2005 22:32:52 -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: How to clear a tree to draw a new one
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.76.179.221
Message-ID: <4276e2a6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115087526 67.76.179.221 (2 May 2005 19:32:06 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed2.easynews.com!easynews.com!easynews!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