private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

        if(!jTextArea1.getText().trim().startsWith("-----BEGIN SIGNED CHEQUE-----") && !jTextArea1.getText().trim().startsWith("-----BEGIN SIGNED VOUCHER-----")){
            JOptionPane.showMessageDialog(this, "Please enter valid cheque","Error",JOptionPane.ERROR_MESSAGE);
            return;
        }
        if(!jTextArea1.getText().contains(serverID)){
            JOptionPane.showMessageDialog(this, "Cheque is not present on this server","Error",JOptionPane.ERROR_MESSAGE);
            return;
        }
        System.out.println("Deposit Cheque accountID:"+accountID);
        System.out.println("Deposit Cheque cheque value:"+jTextArea1.getText());
       /* if(!jTextArea1.getText().contains(accountID)){
            JOptionPane.showMessageDialog(this, "Cheque is not valid for this account","Error",JOptionPane.ERROR_MESSAGE);
            return;
        }*/
        // TODO - Need to check if recepient NYM is not blank, it should be equl to nymID.
        /*hasRecipient="true"
        recipientUserID="Bg2QrSTomOEU5ICfvhfYfBYxQZPktDSnaVPpMLYxUnz"*/
        if(jTextArea1.getText().trim().contains("hasRecipient=\"true\"") && !jTextArea1.getText().contains(nymID)){
            JOptionPane.showMessageDialog(this, "The recipient NYM ID in cheque and your NYM ID do no match ","Error",JOptionPane.ERROR_MESSAGE);
            return;
        }
        OpenTransactionAccount openTransaction = new OpenTransactionAccount();
        try{
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            boolean success = openTransaction.depositCheque(serverID, nymID, accountID, jTextArea1.getText());
            /**
             * Reload the inbox and top accounts panel if success
             */
            if(success){
                JOptionPane.showMessageDialog(this, "Cheque deposited successfully","Success",JOptionPane.INFORMATION_MESSAGE);
                Helpers.reloadOTDetails(accountID);
                MainPage.reLoadAccount();
            }
            else
                JOptionPane.showMessageDialog(this, "Error in cheque deposit","Error",JOptionPane.ERROR_MESSAGE);
        }catch(Exception e){
          e.printStackTrace();  
        } finally {
            setCursor(Cursor.getDefaultCursor());
            this.dispose();
        }
    }//GEN-LAST:event_jButton1ActionPerformed