Solved

Pass selected tree value to another frame

Posted on 2007-04-09
2
170 Views
Last Modified: 2010-03-31
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
Comment
Question by:Sh_Rashed
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 18880946
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
 

Author Comment

by:Sh_Rashed
ID: 18880987
Thank u object
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question