Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/04/2007, 08:50
Avatar de Asgaroth
Asgaroth
 
Fecha de Ingreso: abril-2007
Mensajes: 79
Antigüedad: 17 años, 1 mes
Puntos: 4
Re: Cerrar Ventana

lo que dicen es cierto el System.exit(0) termina el programa, lo que tienes que hacer es como dice Ramoncito2 frame2.setVisible(false);

Código PHP:
frame2.addWindowListener(new java.awt.event.WindowAdapter(){ 
        public 
void windowClosing(WindowEvent e){
            
frame2.setVisible(false);
        }
    }
); 
eso es todo