Article View: borland.public.jbuilder.java.language
Article #8453JTree
From: dhj
Date: Thu, 22 Mar 2001 22:23
Date: Thu, 22 Mar 2001 22:23
19 lines
1336 bytes
1336 bytes
Hi,
Does anyone have a working example of how can I save a pointer
form every Item in the tree ?
For example: I have a three with one level and I want to get the
ID from the Database when I click the Item.
At the moment I fill the Tree like that:
kapitel = queryDataSet2.getString(2) + " " +
queryDataSet2.getInt(3);
child1 = new DefaultMutableTreeNode(kapitel);
node1.add(child1);
and get only the text of the Database but not the ID.
So who can tell me how I can do that
Mike
Technical Details
Message-ID:
<3ABA7B79.ABA8A4AC@cos.de>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!zeus.visi.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!217.4.220.129Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,24d622f04a234c0,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-23 04:06:03 PST Message-ID: <3ABA7B79.ABA8A4AC@cos.de> Date: Thu, 22 Mar 2001 23:23:53 +0100 From: dhj <mkr@cos.de> X-Mailer: Mozilla 4.7 [de] (WinNT; I) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: JTree Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.4.220.129 X-Trace: 22 Mar 2001 14:21:26 -0800, 217.4.220.129 Lines: 20 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!zeus.visi.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!217.4.220.129