I am displaying 2 JTables and a JEditorPane in a JFrame. Both the Tables have different data. On double clicking the table2 i want to update table1 and the editor pane. I am able update the editor pane but not the table1. I tried the add e.getClickCount() == 2 for table1 , but its not working.I am displaying 2 JTables and a JEditorPane in