• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Pass selected tree value to another frame

Hi experts,

I have JFrame that contains JTree. I can get the selected value in JTree. so I want to pass the value to another frame to display the value.
0
Sh_Rashed
Asked:
Sh_Rashed
1 Solution
 
objectsCommented:
add the other frame as a tree selection listener on your tree, that way it will get called when the selection changes.

http://java.sun.com/docs/books/tutorial/uiswing/events/treeselectionlistener.html
0
 
Sh_RashedAuthor Commented:
Thank u object
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now