コード例 #1
0
 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;
     }
   }
 }
コード例 #2
0
 private void selectFirstPolicyInformationInTable() {
   if (getPolicyInformationTableModel().getRowCount() > 0) {
     jtPolicyInformation.changeSelection(0, 0, false, false);
   }
 }