|
From: Juan S. <jsa...@pu...> - 2010-06-19 04:23:11
|
omg! really thanks !! but this mistake was because the Netbeans generated that code and I didn't realize it. and also I cannot change the code directly. I have to make this with the netbeans program. really really thanks. see you later Juan Leif Mortenson escribió: > Juan, > Good news, I found the problem. In your > VentanaApagar.initComponents() method, you have the following: > --- > setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); > --- > This is telling the JVM to Exit when the window is closed. See the > following page for more information: > http://java.sun.com/javase/6/docs/api/javax/swing/WindowConstants.html#EXIT_ON_CLOSE > > If you change it to the following then your application will continue to run: > --- > setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); > --- > The docs say the JVM "may" exit when the last window is closed. So > you may want to try one of the other options. > > Please let me know how this works for you. > > Cheers, > Leif > > On Sat, Jun 19, 2010 at 12:36 PM, Leif Mortenson > |