Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Dynamically change JTabbedPane

Posted on 2006-04-23
2
Medium Priority
?
521 Views
Last Modified: 2008-02-01

Hello there,

I have a Jtree which gets populated from the database.on the right side i have 3 JTabbedPane which contains JTable inside it.the table also gets populated from the DB.Now i want to know how can i dynamically change the tab pane when i click on a tree nodes.for example.

JTree                         JTabbedPane
-xxx                           xxx     yyy    zzz
   -yyy
     -zzz

when the frame is shown for the first time JTree only shows the root i.e. xxx and the tab pane shows the xxx pane.
now when i expand the xxx node the yyy tab should be shown.now again when i expand the yyy node the zzz pane should be shown.please help me to make this work,code example will be appreciated a lot.
thanks in advance

cheers
zolf
0
Comment
Question by:zolf
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 16522535
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 16522673
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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 …
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

564 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