I have a JTree and to that a TreeselectionListener. When ever i click on any node on the tree, its related information is displayed. The tables are editable and the edited values are updated. The problem is that when i click on the table to edit, it is displaying the value of the node clicked on earlier. Displaying is taking place properly, but when i click on editing the problem occurs.
Have you checked out TreeSelectionListener? It gets notified when the selection in the tree changes. If you set the selection mode to single selection you can then retrieve the single selected node and use that to rebuild your table (usually you give the existing JTable a new model instead of creating a completely new JTable).