Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable and JTree

843807Feb 20 2003 — edited Feb 21 2003
How would get a handle to a JTable from a JTree which are both on a JSplitPane?

What I would like to do is make the JTable respond to JTree events.

Comments

843807
tree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
            public void valueChanged(TreeSelectionEvent e) {
                // do whatever you want with table in here            
}
        });
Tonny
http://www.kiyut.com
(swing component)
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 21 2003
Added on Feb 20 2003
1 comment
148 views