if(selectedIndices.isEmpty()){
int selected = JOptionPane.showConfirmDialog(this, "This will deposit all of the tokens in the purse", "Warning", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
if(selected==2)
return;
}
new CashPurseDepositDialog(null, true, details, selectedIndices).setVisible(true);
}catch(Exception e){
e.printStackTrace();
}
}//GEN-LAST:event_jButton_DepositActionPerformed