Thank you for reading my post.
My problem is tat when I am trying to delete the last row in a JTable using a button that I placed in one of its columns I receive an exception which cripple the JTable.
I was dealing with this error for one day and I am nowhere. Please let me know if you have any suggestion about it.
I developed following two classes to add a button to one cell of a JTable:
And finally here is how I load the data and use these two classes to add the button to the Jtable:
It works perfect when I press delete button for all rows except for the last row. either it is the only row in the table or there are tens of rows in the table, when I press the delete button for the last row it return the followin exception: The exception happened when my table had 7 rows and I delete the 7th row.