JTable w/ JButton Wierdness...
I am having a problem with the removal of a cell value in a JTable if the value is a JButton. I cannot get this to happen when using a JLabel as the value in a cell. The only component that causes this problem is JButton.
Here's my logic:
1.) Click button to scan a part of the filesystem for XML files.
2.) With the XML files found populate the JTable with the fileName and a button to view the XML in a JEditorPane/JDialog (2 cols).
3.) Select a few of the rows in the JTable.
4.) Click a button to process the XML files selected. (For each row processed a JButton is placed in the last column (column 3), of which has an listener that processes events on itself.)
5.) Click button to scan a part of the filesystem again to refresh the JTable.
Sometimes "SOME" of the buttons that were inserted into column 3 hang around. Sometimes it's one of them, sometimes it's a few of them, sometimes it's all of them! I also have sorting built into this JTable. When I click on a column to sort the data, these buttons that are sticking around do not go with their respective row. If I write a loop to go through the values in the table's cells, the buttons do not exist!
This rarely happens, so there aren't any steps I can take to reproduce it...
I have monkied with the EventQueue for a while now, but I haven't found the solution... I have a sneaky feeling it's thread related...
Any insights would be greatly appreciated!
(BTW, before I put sorting in, the same thing was happening)

