How to update JTable contents
I have a JTable in the JInternalFrame
I have CUD Instruction (Create, Update, Delete actionCommand)
I want to update the TableModel of the JTable.
I have used this method (similar with JComboBox)
Well obviously, I knew that they are different components, yet I thought it would work.
//rowSet is a Vector from the JDBC
//colNames is a String Array containg the column names of the table
employeeTable.setModel(new DefaultTableModel(rowSet, colNames));
I am asking in what sort of way can I update the JTable content.
What JTable method am I suppose to use.