if(selectedIndices.isEmpty()){
int selected = JOptionPane.showConfirmDialog(this, "This will export all of the tokens in the purse", "Warning", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
if(selected==2)
return;
}
new ExportCashToDialog(null, true, details,selectedIndices).setVisible(true);
} catch (Exception e) {
e.printStackTrace();
} finally {
setCursor(Cursor.getDefaultCursor());