Search in sources :

Example 1 with ExchangeBasketDialog

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

the class OpenTransactionAccountTopPanel method jButton_OutActionPerformed.

//GEN-LAST:event_jButton_InActionPerformed
private void jButton_OutActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton_OutActionPerformed
    try {
        OpenTransactionAccount otAccount = new OpenTransactionAccount();
        String basket = otAccount.showBasket(jTextField_ServerID.getText(), jTextField_NymID.getText(), jTextField_AssetID.getText());
        if (basket != null && basket.length() > 0) {
            new ExchangeBasketDialog(null, true, basket, false, jTextField_ServerID.getText(), jTextField_NymID.getText(), jTextField_AccountID.getText(), jTextField_AssetID.getText()).setVisible(true);
        } else {
            JOptionPane.showMessageDialog(null, "Error getting basket curreny list", "Error", JOptionPane.ERROR_MESSAGE);
        }
    } catch (InterruptedException ex) {
        Logger.getLogger(OpenTransactionAccountTopPanel.class.getName()).log(Level.SEVERE, null, ex);
    }
}
Also used : ExchangeBasketDialog(com.moneychanger.ui.dialogs.ExchangeBasketDialog) OpenTransactionAccount(com.moneychanger.core.OpenTransactionAccount)

Example 2 with ExchangeBasketDialog

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

the class OpenTransactionAccountTopPanel method jButton_InActionPerformed.

//GEN-LAST:event_jButton_VerifyFilesActionPerformed
private void jButton_InActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton_InActionPerformed
    try {
        OpenTransactionAccount otAccount = new OpenTransactionAccount();
        String basket = otAccount.showBasket(jTextField_ServerID.getText(), jTextField_NymID.getText(), jTextField_AssetID.getText());
        if (basket != null && basket.length() > 0) {
            new ExchangeBasketDialog(null, true, basket, true, jTextField_ServerID.getText(), jTextField_NymID.getText(), jTextField_AccountID.getText(), jTextField_AssetID.getText()).setVisible(true);
        } else {
            JOptionPane.showMessageDialog(null, "Error getting basket curreny list", "Error", JOptionPane.ERROR_MESSAGE);
        }
    } catch (InterruptedException ex) {
        Logger.getLogger(OpenTransactionAccountTopPanel.class.getName()).log(Level.SEVERE, null, ex);
    }
}
Also used : ExchangeBasketDialog(com.moneychanger.ui.dialogs.ExchangeBasketDialog) OpenTransactionAccount(com.moneychanger.core.OpenTransactionAccount)

Aggregations

OpenTransactionAccount (com.moneychanger.core.OpenTransactionAccount)2 ExchangeBasketDialog (com.moneychanger.ui.dialogs.ExchangeBasketDialog)2