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)); }
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(); }