private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        CashPurseAccount cashPurseAccount = new CashPurseAccount();
        boolean isPasted = true;
        if(jComboBox2.getSelectedIndex()>0)
            isPasted = false;
        try{
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            String purse = cashPurseAccount.exportCashPurse(details.getServerID(), details.getAssetID(), details.getNymID(), details.getPurse(), selectedIndices,jTextField1.getText(),isPasted);
            if(purse!=null){
                CashPurseDetails cashDetails = new CashPurseAccount().getCashPurseDetails(details.getServerID()+":"+details.getAssetID()+":"+details.getNymID());
                CashPurseAccountBottomPanel.populateCashPurseDetails(cashDetails);
                CashPurseAccountTopPanel.populateCashPurseDetails(cashDetails, cashDetails.getBalance());
                MainPage.reLoadAccount();
                
                //((CashPurseTableModel) jTable5.getModel()).setValue(cashPurseAccount.refreshGridData(details.getServerID(), details.getAssetID(), details.getNymID()), jTable5);
            }
            if(Helpers.getObj()!=null){
                new CashPurseExportDetails(null, true,purse,false).setVisible(true);
                dispose();
            }else{
            new CashPurseExportDetails(null, true,purse,true).setVisible(true);
            dispose();
            }
        }catch(Exception e){
            e.printStackTrace();
        }finally{
            setCursor(Cursor.getDefaultCursor());
        }
        dispose();
    }//GEN-LAST:event_jButton1ActionPerformed