Solved

Pass selected tree value to another frame

Posted on 2007-04-09
2
171 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 52
session migration servlets 2 42
type mismatch (Object[] to double[] 4 33
Is Applet the way to go for my drag and drop system? 8 25
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

856 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