import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
+import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
/**
}
+ public void selectStructure(String...pdbids)
+ {
+ FilterOption selectedFilterOpt = ((FilterOption) cmb_filterOption
+ .getSelectedItem());
+ String currentView = selectedFilterOpt.getView();
+ JTable restable = (currentView == VIEWS_FILTER) ? getResultTable()
+ : tbl_local_pdb;
+
+ if (currentView == VIEWS_FILTER)
+ {
+
+ int pdbIdColIndex = restable.getColumn("PDB Id")
+ .getModelIndex();
+ for (int r = 0; r < restable.getRowCount(); r++)
+ {
+ for (int p=0;p<pdbids.length;p++)
+ {
+ if (String.valueOf(restable.getValueAt(r, pdbIdColIndex))
+ .equalsIgnoreCase(pdbids[p]))
+ {
+ restable.setRowSelectionInterval(r, r);
+ }
+ }
+ }
+ }
+ }
/**
* Handles action event for btn_ok
*/