private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        String serverID = null;
        if(jComboBox1.getSelectedIndex() > -1) {
            serverID = ((String[]) serverMap.get((Integer) jComboBox1.getSelectedIndex()))[1];
        }
        System.out.println("In DeleteNYM Dialog, server ID:"+serverID+" nymID:"+nymID);

        try {
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            boolean status = new NYM().deleteNym(nymID,serverID,serverMap.size()>1?false:true);
            if(status){
                JOptionPane.showMessageDialog(this, "Nym deleted sucessfully from the server", "NYM deletion success", JOptionPane.INFORMATION_MESSAGE);
                // Not required
                MainPage.refreshNYMSList();
                MainPage.refreshMarketNym(serverID);
            }else{
                JOptionPane.showMessageDialog(this, "Cannot delete nym from server", "Error", JOptionPane.ERROR_MESSAGE);
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        } finally {
            setCursor(Cursor.getDefaultCursor());
            dispose();
        }
}//GEN-LAST:event_jButton1ActionPerformed