How would that change the contents of the array that you created and use?
Try debugging the code to see what happens by adding some println statements to different methods in the model class so...
Type: Posts; User: Norm
How would that change the contents of the array that you created and use?
Try debugging the code to see what happens by adding some println statements to different methods in the model class so...
You need to have code there to remove the deleted row so that what is displayed in the JTable matches what is in the DB.
Sorry, I don't know anything about visual basic.
From post #8
Where does the code remove elements from the array in the model class?
Is that what you want to happen?
If not, where is the code to change the JTable that I asked about in posts #6 and #8
Should what is seen in the JTable be the same as what is in the DB? If a row is deleted, should it be deleted from the DB and from the GUI?
That's for the DB. Does it work? Is the row removed from the DB?
What about the display of the row in the JTable?
Where does the code remove elements from the array in the model class?
Where is the logic for deleting a row from the table that is being displayed?
There is no code in the listener for the add button.
Can you explain? What does the program do when it starts? What do you do next?
What does the program then do in response?