本文整理汇总了Java中javax.swing.table.AbstractTableModel.fireTableDataChanged方法的典型用法代码示例。如果您正苦于以下问题:Java AbstractTableModel.fireTableDataChanged方法的具体用法?Java AbstractTableModel.fireTableDataChanged怎么用?Java AbstractTableModel.fireTableDataChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.table.AbstractTableModel
的用法示例。
在下文中一共展示了AbstractTableModel.fireTableDataChanged方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: songPartChanged
import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
@Override
public void songPartChanged(SongPart part) {
if (!this.notificationsDisabled) {
this.setSongChanged(true);
// we need to refresh the data in the song part table
int selectedRow = this.tblSongParts.getSelectedRow();
AbstractTableModel model = (AbstractTableModel)this.tblSongParts.getModel();
model.fireTableDataChanged();
this.tblSongParts.getSelectionModel().setSelectionInterval(selectedRow, selectedRow);
}
}
示例2: fireTableDataChanged
import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
public void fireTableDataChanged() {
// save table selection
int selRow=jTable.getSelectedRow();
AbstractTableModel model = (AbstractTableModel) jTable.getModel();
model.fireTableDataChanged();
if(selRow!=-1){
jTable.getSelectionModel().setSelectionInterval(selRow, selRow);
}
}
示例3: updateTable
import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
void updateTable(ArrayList<Work> work, AbstractTableModel model, int goalUnits, ArrayList<Work> original) {
//DETERMINE WHICH WORK TO INCLUDE
int totalUnits = 0;
work.clear();
if (original != null) {
for (Work x : original) {
work.add(x);
totalUnits += x.getUnits();
}
}
recurse(AllCourses.getInstance().getElements(), work, totalUnits, goalUnits);
model.fireTableDataChanged();
}
示例4: refreshTable
import javax.swing.table.AbstractTableModel; //导入方法依赖的package包/类
private void refreshTable(final JBTable table, final PackageEntryTable packageTable) {
AbstractTableModel model = (AbstractTableModel)table.getModel();
table.createDefaultColumnsFromModel();
model.fireTableDataChanged();
ImportLayoutPanel.resizeColumns(packageTable, table, myImportLayoutPanel.areStaticImportsEnabled());
}