model.fireTableRowsUpdated(0, model.getRowCount() - 1);
@Override public void fireTableRowsUpdated(final int firstRow, final int lastRow) { super.fireTableRowsUpdated(firstRow + 1, lastRow + 1); }
/** * Change the value of the specified row. */ public void updateDatum (Object element, int row) { _data.set(row, element); _model.fireTableRowsUpdated(row, row); }
void swapConditions(int index1, int index2){ final Item item1 = styles.get(index1); final Item item2 = styles.get(index2); styles.set(index1, item2); styles.set(index2, item1); if(table == null){ return; } table.fireTableRowsUpdated(index1, index1); table.fireTableRowsUpdated(index2, index2); }
public void setValueAt(Object aValue, int row, int column) { if(column == 4) { Record rec = (Record)data.get(row); rec.setValueAt(aValue, column); fireTableRowsUpdated(row, row); } }
public void update(TransactionStatusEvent e) { if (ui.isDestroyed()) { return; } int row = e.getSession(); events[row] = e; model.fireTableRowsUpdated(row, row); // table.getSelectionModel().setSelectionInterval(row, row); setBackgroundColor (row, color[e.getState().intValue()]); inTransit.setText (Long.toString (txnmgr.getInTransit())); outstanding.setText (Long.toString (txnmgr.getOutstandingTransactions())); } private void setBackgroundColor (int row, Color color) {
for (int i = 0; i < elements.length; i++) { if(elements[i] == domainObject) { fireTableRowsUpdated(i, i);
columns.set(index, intValue * index); fireTableRowsUpdated(rowIndex, rowIndex);
checked.remove(row); fireTableRowsUpdated(row, row);
model.fireTableRowsUpdated(iIndex, iIndex); // Notify the models to get rid of the visual
checked.remove(row); fireTableRowsUpdated(row, row);
if (col == 0) { data.set(row, (Double) aValue); fireTableRowsUpdated(row, row);
@Override public void actionPerformed(ActionEvent e) { if (player.isPlaying()) { PlaylistTable table = tabs.getSelectedTable(); if (table != null) { int index = table.getPlaylist().indexOf(player.getTrack()); ((AbstractTableModel) table.getModel()).fireTableRowsUpdated(index, index); } } } });
fireTableRowsUpdated(0, getRowCount());
model.fireTableRowsUpdated(0, model.getRowCount() - 1);
delegate.fireTableRowsUpdated(lastSelected, lastSelected); delegate.fireTableRowsUpdated(rowIndex, rowIndex); } else { delegate.setValueAt(aValue, rowIndex, columnIndex);
if (row == -1) return; int modelRow = convertRowIndexToModel(row); ((AbstractTableModel)getModel()).fireTableRowsUpdated(modelRow, modelRow);