Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Highlight the JTREE  RSS feed

 
Vasu mallipeddi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have Doubt in JTREE.

IN MY UI Design Frame.

Left side is JTREE, Right Side is JTable.

JTable Data is Related to JTREE Data. JTable One Column is JTREE Nodes.

Suppose JTable is 4 columns

i.e.

Id TREENODE Data Name
-- ---------- ---- -------
1 A AB Primary
2 B BC Secondary
3 A1 AA Primary Child
4 B1 BB Secondary Child

If I Select any Cell in JTREE,i am getting the that particular cell JTREE Node.

i.e. If i select AB(Data),i am getting A(TREENODE).How to Highlight the "A" Node in JTREE.
If i select the Primary child(Name),i am getting the A1(TREE NODE).How to Highlight the "A1" Node in JTREE

JTREE Contains Nodes are
|--Main Tree
|--A
|--A1
|--A2
|--B
|--B1
|--B2

I am Struggling, How to Highlight the JTREE Nodes. Please give me Suggestions.It Is Very Urgent.

Thanks,
venkata.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
initial thoughts (untested) are to create an object to display in the 'NAME' column
this object will hold its treepath
listener, of this column, will select the relative treepath
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!