I've lookup for some answers but none really helped me.
I have a JTable
in a window which is populated with data from a DB. (This my user table)
//Creating the user table
String[] columnNames = {"Identifiant", "Login","Prenom", "Nom", "Niveau", "Email"};
int[] indexes = {1, 3, 4, 5, 6, 7};
userTable = GUITools.buildTableFromDB("user", columnNames, indexes);
scrollUserPane = new JScrollPane(userTable);
I implemented Add and Delete functions which work fine. However after deleting or adding, I would like to refresh my table to make it the exact mirror of my DB.
I tried to simply recreate it just as it is done the first time but.