private void selectPolicyInformationInTable(PolicyInformation policyInfo) { for (int i = 0; i < jtPolicyInformation.getRowCount(); i++) { if (policyInfo.equals(jtPolicyInformation.getValueAt(i, 0))) { jtPolicyInformation.changeSelection(i, 0, false, false); return; } } }
private void selectFirstPolicyInformationInTable() { if (getPolicyInformationTableModel().getRowCount() > 0) { jtPolicyInformation.changeSelection(0, 0, false, false); } }