private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        if (jTextField2.getText() == null || jTextField2.getText().length() < 1) {

            JOptionPane.showMessageDialog(this, "Please select valid server/account id", "Error", JOptionPane.ERROR_MESSAGE);
            return;
        }

        if (Utility.VerifyStringVal(type)) {

            String acctID = jTextField2.getText();

            if (type.equals("Send Transfer")) {
                new SendTransferDialog(null, true, serverID, nymID, acctID).setVisible(true);
            } else if (type.equals("Send Cheque")) {
                new OTWriteCheque(null, true, serverID, nymID, acctID,"").setVisible(true);
            } else if (type.equals("Send Voucher")) {
                new WithdrawVoucherDialog(null, true, serverID, nymID, acctID).setVisible(true);
            } else if (type.equals("Send Cash")) {
                new WithdrawCashDialog(null, true, serverID, nymID, acctID).setVisible(true);
            }else if (type.equals("Send Invoice")) {
                new OTWriteCheque(null, true, serverID, nymID, acctID,"-").setVisible(true);
            }


        }
        this.dispose();
    }//GEN-LAST:event_jButton1ActionPerformed