Example usage for javax.swing.table DefaultTableModel fireTableCellUpdated

List of usage examples for javax.swing.table DefaultTableModel fireTableCellUpdated

Introduction

In this page you can find the example usage for javax.swing.table DefaultTableModel fireTableCellUpdated.

Prototype

public void fireTableCellUpdated(int row, int column) 

Source Link

Document

Notifies all listeners that the value of the cell at [row, column] has been updated.

Usage

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);

}