Removing a column from your JTable does not remove the column from your TableModel, only from the visual representation.
Assuming you're using a DefaultTableModel, you can clear that with just two lines:
joseph dela cruz wrote:also please comment on the way i put rows is it proper to use a constructor object or a different way is way much better?
Since you create the object, get its values, then discard it, I would skip it completely: