List of usage examples for javax.swing.table DefaultTableModel fireTableCellUpdated
public void fireTableCellUpdated(int row, int column)
[row, column]
has been updated. From source file:us.vicentini.domainutil.view.DomainPanel.java
private void populateDomains(List<String> domainsName) { String[] headers = new String[] { "Domain", "Status", "Results" }; dataModel = new Object[domainsName.size()][3]; for (int i = 0; i < domainsName.size(); i++) { dataModel[i][0] = domainsName.get(i); dataModel[i][1] = new MyString(""); dataModel[i][2] = new MyString(""); }//from w ww. j a v a2 s.co m DefaultTableModel tableModel = new javax.swing.table.DefaultTableModel(dataModel, headers); tableModel.fireTableCellUpdated(WIDTH, WIDTH); jTable1.setModel(tableModel); }