Article View: borland.public.jbuilder.java.swing
Article #9760bind data to treenode in treeControl?
From: hot_bee
Date: Fri, 21 Jan 2000 00:00
Date: Fri, 21 Jan 2000 00:00
27 lines
1343 bytes
1343 bytes
here I have read the 'Simple TreeControl Sample' of jbuilder, but the node
in the sample is based on text and what I want is to add my data to it and
at the same time the text label remained to show, I mean I have to add a
node to the tree with a node name and when I click on a node, I can get my
data from the node too.
now I program this way:
class NodeInfo extends LinkedTreeNode{
public
String sPropertyType=new String(""),
sValue=new String(""),
sDescription = new String("");
}
.....
NodeInfo root=new NodeInfo();
root = treeControl1.setRoot("root");
the line above occure error, I know I should return a GraphLocation type
value, but if then I have to lose my data, what should I do to bind my data
with the tree nodes?
it is emergency, thank u in advance!
my email is hot_bee@hotmail.com
Technical Details
Message-ID:
<868cm5$i1q1@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,61054c27f3bb1dc9,start X-Google-Attributes: gid111d45,public From: "hot_bee" <hot_bee@188.net> Subject: bind data to treenode in treeControl? Date: 2000/01/21 Message-ID: <868cm5$i1q1@bornews.borland.com> X-Deja-AN: 575531445 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing