@Override
  public void update(Observable arg0, Object arg1) {
    textoResultadoInSitu.setText(gestor.isCerrada() ? "Cerrada" : "Abierta");

    if (gestor.getHand() != null && gestor.getHand().isValid()) {
      if (mano3d == null) {
        mano3d = new Mano3D(visualizador, gestor.getHand());
      } else {
        mano3d.setHand(gestor.getHand());
      }
    }
  }
  public PacienteFrame(Paciente paciente) {
    super(
        paciente.getNombre()
            + " "
            + paciente.getApellido1()
            + " "
            + paciente.getApellido2()
            + " (Paciente)");
    this.paciente = paciente;
    this.crearAcciones();
    this.setSize(800, 600);
    this.setMinimumSize(new Dimension(800, 600));
    this.setLocation(50, 25);
    this.setJMenuBar(crearBarraMenu());
    this.getContentPane().add(crearToolBar(), BorderLayout.NORTH);
    this.getContentPane().add(crearPanelVentana(), BorderLayout.CENTER);
    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    this.setVisible(true);

    gestor = new GestorMano();
    gestor.addObserver(this);

    leapListener = new LeapMotionListener(gestor);
    controlador = new Controller();

    controlador.addListener(leapListener);
  }