TableSorter sorter = (TableSorter) detectorTable.getModel(); TableModel model = sorter.getTableModel();
DefaultSortedTableModel sorter = (DefaultSortedTableModel) detectorTable.getModel(); TableModel model = sorter.getBaseTableModel();
	private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed		// Update new enabled/disabled status for the Detectors		int num = factoryList.size();		TableSorter sorter = (TableSorter) detectorTable.getModel();		TableModel model = sorter.getTableModel();		for (int i = 0; i < num; ++i) {			DetectorFactory factory = factoryList.get(i);			Boolean enabled = (Boolean) model.getValueAt(i, ENABLED_COLUMN);			factory.setEnabled(enabled.booleanValue());		}		closeDialog();	}//GEN-LAST:event_okButtonActionPerformed