private void DelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DelButtonActionPerformed
        if (FocusOwnerIndex == 1) {
            if (NumberField1.getCaretPosition() != NumberField1.getText().length()) { // only do something if the caret is not the at the end
                int tmpcaretpos = NumberField1.getCaretPosition();
                NumberField1.setText(NumberField1.getText().substring(0, NumberField1.getCaretPosition()) + NumberField1.getText().substring(NumberField1.getCaretPosition() + 1, NumberField1.getText().length()));
                NumberField1.setCaretPosition(tmpcaretpos);
            }
        }
        if (FocusOwnerIndex == 2) {
            if (NumberField2.getCaretPosition() != NumberField2.getText().length()) { // only do something if the caret is not the at the end
                int tmpcaretpos = NumberField2.getCaretPosition();
                NumberField2.setText(NumberField2.getText().substring(0, NumberField2.getCaretPosition()) + NumberField2.getText().substring(NumberField2.getCaretPosition() + 1, NumberField2.getText().length()));
                NumberField2.setCaretPosition(tmpcaretpos);
            }
        }
        if (FocusOwnerIndex == 3) {
            if (NumberField3.getCaretPosition() != NumberField3.getText().length()) { // only do something if the caret is not the at the end
                int tmpcaretpos = NumberField3.getCaretPosition();
                NumberField3.setText(NumberField3.getText().substring(0, NumberField3.getCaretPosition()) + NumberField3.getText().substring(NumberField3.getCaretPosition() + 1, NumberField3.getText().length()));
                NumberField3.setCaretPosition(tmpcaretpos);
            }
        }
        if (FocusOwnerIndex == 4) {
            if (NumberField4.getCaretPosition() != NumberField4.getText().length()) { // only do something if the caret is not the at the end
                int tmpcaretpos = NumberField4.getCaretPosition();
                NumberField4.setText(NumberField4.getText().substring(0, NumberField4.getCaretPosition()) + NumberField4.getText().substring(NumberField4.getCaretPosition() + 1, NumberField4.getText().length()));
                NumberField4.setCaretPosition(tmpcaretpos);
            }
        }
        Validate();
    }//GEN-LAST:event_DelButtonActionPerformed