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); }