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);
}
}
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);
}
}
Aggregations