コード例 #1
0
 public void setUpSeq() {
   int pageNum = swingControl.getCurrentPageNumber();
   int selectCount = 0;
   for (int i = 0; i <= pageNum; i++) {
     if (statusArray[GlobalVar.SELECT_BUTTON_INDEX][i]) {
       selectCount++;
     }
   }
   seqText.setText(GlobalVar.globalCounterGenerator(selectCount));
 }
コード例 #2
0
 private void voidButtonActionPerformed(ActionEvent evt) {
   // System.out.println("Void button clicked");
   int pageNum = swingControl.getCurrentPageNumber();
   statusButtonGroup.clearSelection();
   voidButton.setSelected(!statusArray[GlobalVar.VOID_BUTTON_INDEX][pageNum]);
   statusArray[GlobalVar.VOID_BUTTON_INDEX][pageNum] =
       !statusArray[GlobalVar.VOID_BUTTON_INDEX][pageNum];
   statusArray[GlobalVar.SKIP_BUTTON_INDEX][pageNum] = false;
   statusArray[GlobalVar.SELECT_BUTTON_INDEX][pageNum] = false;
   setUpSeq();
 }