
25/06/2007, 13:42
|
 | | | Fecha de Ingreso: mayo-2007
Mensajes: 32
Antigüedad: 17 años, 9 meses Puntos: 1 | |
Re: JFrame llama a JDialog, el cual no responde this.setTitle("Registrar Nuevo Usuario");
this.setModal(true);
this.setLocation(200, 150);
this.setSize(new Dimension(300, 180));
this.setVisible(true);
ButtonHandler bh=new ButtonHandler ();
registrar.addActionListener(bh);
y porque no pones el listener antes de hacer visible el JDialog asi :
ButtonHandler bh=new ButtonHandler ();
registrar.addActionListener(bh);
this.setTitle("Registrar Nuevo Usuario");
this.setModal(true);
this.setLocation(200, 150);
this.setSize(new Dimension(300, 180));
this.setVisible(true); |