public boolean deleteLink(int posicion) {//deletes the link on the position of the parameter
        if (posicion >= 0 && posicion <= links.getLength()) {//if position is in a valid range.
            links.remove(posicion);//deletes from links list the element of that position
            actual_links--;//reduces variable
            return true;
        } else JOptionPane.showMessageDialog(null, "No link in position: " + posicion);//message no link found

        return false;
    }