private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        try{
            
            boolean isToken = false;
            if(jTextArea1.getText().length()<1){
                JOptionPane.showMessageDialog(this, "Error in cash purse import. Empty purse","Error",JOptionPane.ERROR_MESSAGE);
                return;
            }
            if(!jTextArea1.getText().trim().startsWith("-----BEGIN SIGNED CASH-----") &&  !jTextArea1.getText().trim().startsWith("-----BEGIN SIGNED PURSE-----")){
                JOptionPane.showMessageDialog(this, "Please enter valid purse/token","Purse Error",JOptionPane.ERROR_MESSAGE);
                return;
            }

            if(jTextArea1.getText().trim().startsWith("-----BEGIN SIGNED CASH-----")){
                isToken = true;
            }
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            boolean success = openTransaction.depositCash(serverID, nymID, accountID,jTextArea1.getText(),isToken);
            /**
             * Reload the inbox and top accounts panel if success
             */
            if(success){
                JOptionPane.showMessageDialog(this, "Cash deposited successfully","Success",JOptionPane.INFORMATION_MESSAGE);
                Helpers.reloadOTDetails(accountID);
                MainPage.reLoadAccount();
            }
            else{
                if(Helpers.getOtDepositCash()!=null){
                    new CashPurseExportDetails(null, true,(String)Helpers.getOtDepositCash(),false).setVisible(true);
                }else
                JOptionPane.showMessageDialog(this, "Error in cash deposit","Error",JOptionPane.ERROR_MESSAGE);
            }
        }catch(Exception e){
            e.printStackTrace();
        }finally{
            setCursor(Cursor.getDefaultCursor());
            
        }
        this.dispose();
    }//GEN-LAST:event_jButton1ActionPerformed