I have a frame in which I have a JTable. The values of the JTable are determined by what values are clicked in the JTree beside it. My problem is that the first time I click on the tree, the display is fine. But when I click on the tree again the display is fine, but when i go to edit the table, the first clicked values appear. Please tell me where i am going wrong.