Forum Stats

  • 3,783,594 Users
  • 2,254,807 Discussions
  • 7,880,474 Comments

Discussions

JTable and JTree

843807
843807 Member Posts: 46,582
edited Feb 21, 2003 10:37PM in Java Desktop Applications
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
    843807 Member Posts: 46,582
    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)
This discussion has been closed.