@Override
    public void mouseClicked(MouseEvent click) {
        for (int j = 0; j < components.getLength(); j++) {
            Componente component = components.get(j);

            if (component.contains(click.getPoint())) {
                if (SwingUtilities.isLeftMouseButton(click)) {
                    if (component.isIn()) {
                        boolean value = component.changeDigitalValue();
                        listener.actionPerformed(new ActionEvent(this, SET_INOUT, component.getReference() + "#" + value));
                    }
                }
                if (SwingUtilities.isRightMouseButton(click)) {
                    deleteComponent(j);


                }


            }

        }
    }