I have a JTable that is contained with in a split pane. On the right of the splitPane I have a JList (which contains names of tables in a database). When the user clicks on one of the table names in the JList I want to go to the database get the info and load it into into the JTable. What I am doing now is creating a new TableModel everytime and setting it to the JTable. I am having some problems with the custom MouseListeners because they do not work with the new TableModel.
1.) Is this the correct way to do this?
2.) If so is there a way to remove just the mouseListener I want and then register a new one with the new TableModel?
Thanks for your help!!