private void deleteBotonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteBotonActionPerformed
        int index = serverTable.getSelectedRow();
        if(index>=0&&!currentCheck.isSelected()){
            String server = (String)serverTable.getModel().getValueAt(index, 0);
            ServicioConexion sc = new ServicioConexion(conexion.user, conexion.pass, conexion.ip, conexion.port, conexion.db);
            boolean exito = false;
            try {
                Object[] options = {"Yes", "No"};
                int op = JOptionPane.showOptionDialog(this, "Do you want to delete server " + server + "?", "Delete Server", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]);

                if (op == 0) {
                    exito = sc.dropLink(server);
                    cargarTabla();
                } 
            } catch (    GlobalException | NoDataException ex) {
                exito = false;
                Logger.getLogger(ConectadoGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            if(exito){
                JOptionPane.showMessageDialog(this, "The server "+server+" has been deleted");
            }
        }
    }//GEN-LAST:event_deleteBotonActionPerformed