Search in sources :

Example 1 with DepositCashDialog

use of com.moneychanger.ui.dialogs.DepositCashDialog in project otapij by FellowTraveler.

the class OpenTransactionAccountTopPanel method jButton_DepositCashActionPerformed.

//GEN-LAST:event_jButton_WithdrawCashActionPerformed
private void jButton_DepositCashActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton_DepositCashActionPerformed
    String[] purseDetails = new OpenTransactionAccount().getPurseBalance(jTextField_ServerID.getText(), jTextField_AssetID.getText(), jTextField_NymID.getText());
    /*if(purseDetails==null){
        JOptionPane.showMessageDialog(this, "Error in cash deposit. Empty purse","Error",JOptionPane.ERROR_MESSAGE);
        return;
        }*/
    new DepositCashDialog(null, true, purseDetails, jTextField_ServerID.getText(), jTextField_NymID.getText(), jTextField_AccountID.getText()).setVisible(true);
}
Also used : OpenTransactionAccount(com.moneychanger.core.OpenTransactionAccount) DepositCashDialog(com.moneychanger.ui.dialogs.DepositCashDialog)

Aggregations

OpenTransactionAccount (com.moneychanger.core.OpenTransactionAccount)1 DepositCashDialog (com.moneychanger.ui.dialogs.DepositCashDialog)1