private void chequePayementButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chequePayementButtonActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            orderDataAccessorObject.deleteOrderInfo(Integer.parseInt(paymenOrderIDText.getText()));
        } catch (SQLException ex) {
            Logger.getLogger(supplierMain.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        try{
            this.bankName=bankSearchCombo.getSelectedItem().toString();
            this.inputDate=chequePayementDateText.getText();
            this.chequeAmount=Float.parseFloat(chequePaymentAmountText.getText());
        
        
            tempCheque=new cheque(bankName, inputDate, chequeAmount);
        
            if(tempCheque.chequeDateCheck(currentDate)){
                chequeDataAccessObject.insertChequeData(tempCheque);
            }
            else{
                JOptionPane.showMessageDialog(null,"Incorrect cheque date ","Error",JOptionPane.WARNING_MESSAGE);
            }
                
        }
        catch (SQLException ex) {
            Logger.getLogger(supplierMain.class.getName()).log(Level.SEVERE, null, ex);
        }
        catch(Exception e){
            JOptionPane.showMessageDialog(null,"Incorrect item input ","Error",JOptionPane.WARNING_MESSAGE);
        }
    }//GEN-LAST:event_chequePayementButtonActionPerformed