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....

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments