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

        if (!"------".equals(selectorClave.getSelectedItem().toString())) {
            int g = JOptionPane.showConfirmDialog(null,
                    "Se va ha borrar la clave " + selectorClave.getSelectedItem().toString()
                    + " ¿continuar?");
            if (g == 0) {
                Obj.principal.claves.remove(selectorClave.getSelectedItem().toString());
                selectorClave.removeItem(selectorClave.getSelectedItem().toString());
                selectorClave.setSelectedIndex(0);
                limpiar();
            }
        }
    }//GEN-LAST:event_btnBorrarClaveActionPerformed