TableSorter sorter = (TableSorter) detectorTable.getModel(); TableModel model = sorter.getTableModel();
DefaultSortedTableModel sorter = (DefaultSortedTableModel) detectorTable.getModel(); TableModel model = sorter.getBaseTableModel();
	private void restoreDefaultsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_restoreDefaultsButtonActionPerformed		Iterator<DetectorFactory> i = DetectorFactoryCollection.instance().factoryIterator();		TableSorter sorter = (TableSorter) detectorTable.getModel();		TableModel model = sorter.getTableModel();		int row = 0;		while (i.hasNext()) {			DetectorFactory factory = i.next();			model.setValueAt(factory.isDefaultEnabled() ? Boolean.TRUE : Boolean.FALSE, row++, ENABLED_COLUMN);		}	}//GEN-LAST:event_restoreDefaultsButtonActionPerformed