Package com.moneychanger.core

Examples of com.moneychanger.core.Contract


        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        boolean status = new Contract().editLabel(serverID,"Server", jTextField1.getText());
        if(status)
            JOptionPane.showMessageDialog(this, "Server Contract edited successfully","Edit Success",JOptionPane.INFORMATION_MESSAGE);
        else
            JOptionPane.showMessageDialog(this, "Server Contract could not be edited","Failure",JOptionPane.ERROR_MESSAGE);
        this.dispose();
View Full Code Here


    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

        try{
        setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        boolean success = new Contract().issueAssetType(jTextField2.getText(), jTextField1.getText(), contractString);
        if(success){
            JOptionPane.showMessageDialog(this, "Asset issued successfully","Issue Asset",JOptionPane.INFORMATION_MESSAGE);
            MainPage.loadAccount(assetID, serverID, nymID);
          
            // refresh
View Full Code Here

    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration//GEN-END:variables

    private void initValues() {
        Contract contract = new Contract();
        serverMap = contract.loadServerContract();
        Helpers.populateCombo(serverMap, jComboBox2);
        nymMap = new NYM().loadNYM();
        Helpers.populateCombo(nymMap, jComboBox1);
    }
View Full Code Here

        if (file == null || !file.exists()) {
            JOptionPane.showMessageDialog(this, "Invalid File. Please select valid file to continue", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            if ("Server".equalsIgnoreCase(type)) {
                new Contract().createServerContract(Helpers.fileToString(file).trim());
            } else if ("Asset".equalsIgnoreCase(type)){
                new Contract().createAssetContract(Helpers.fileToString(file).trim());
            }
            this.dispose();
        }
}//GEN-LAST:event_jButton1ActionPerformed
View Full Code Here

    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

    private void initValues() {
        serverMap = new Contract().loadServerContract();
        Helpers.populateComboWithoutAll(serverMap, jComboBox1);
    }
View Full Code Here

TOP

Related Classes of com.moneychanger.core.Contract

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.