Thanks for the reply Mark. Using ListSelectionListener worked. However, it created another problem for me, which is one I don't understand. I'm a newbie at using ListSelectionListener so I was wondering if you could help me figure out where the problem lies.
In my application, there is a JComboBox that the user picks a customer. Each time there is an actionEvent on the customer JComboBox, a method is run that populates a table below with the corresponding information for that customer.
Since I am now using ListSelectionListener, I can click on a row on a table, or scroll up and down through it using arrow keys and the info is put into my text fields just wonderfully. However, when I change the customer in the JComboBox, I keep getting an ArrayIndexOutOfBoundsException -1 < 0.
This only happens if I have selected a row in the table. If I don't do anything in the table, I can choose different customers left and right without any grief.
Could you please help me out? I guess I don't understand what it's trying to tell me. If you need me to post code, let me know.
Thanks a million!!