Solved

Pass selected tree value to another frame

Posted on 2007-04-09
2
169 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
Comment Utility
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
Comment Utility
Thank u object
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now