February 09, 2012

How to clear table value in java

Clear JTable Values



JTable table = null;
defaultTableModel = new DefaultTableModel();
table = new JTable(defaultTableModel);


defaultTableModel.getDataVector().removeAllElements();
table.repaint();
table.revalidate();


Thanking you....

Facebook comments