private void btnOKMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnOKMousePressed
        //init member
        int isMember = 0;
        
        //set if member is checked
        if(chkMember.isSelected()){
            isMember = 1;
        }

        //set our values
        sqlData[0] = txtCust.getText();
        sqlData[1] = txtMin.getText();
        sqlData[2] = String.valueOf(isMember);
        if(isMember == 1){
            sqlData[1] = "0";
        }
        
        //set no error
        int error = 0;
        
        if(txtCust.getText().trim().isEmpty() && txtMin.getText().trim().isEmpty()){
            error = 1;
        }else if(txtCust.getText().trim().isEmpty() && chkMember.isSelected() == Boolean.FALSE){
            error = 1;
        }else{
            error = 0;
        }
        
        //if no error then set the session
        if(error == 0){
            //create the session
            this.createSession();
            //close the form
            this.setVisible(false);
        }else if(error == 1){
            JOptionPane.showMessageDialog(this,"Please ensure the Customer Name and Duration contains values OR Customer Name and Member!","Error",JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_btnOKMousePressed