Default "X" button or EXIT_ON_CLOSE will not work
First of all, please know that I searched all the forums here and could not find any pertinent information. If I missed it somehow, I am sorry.
This is my second java gui program I've written using NetBeans 6.9.1. In both programs the main window gets created and comes up with the standard buttons you see on all gui windows including a usually red "X" button used to exit the program. In my first program, when I click that button, the programs exits as it is supposed to. In my second program when I click the "X" button, the window goes away, however java is still actually running and I have to quit it separately. I've compared the two programs over and over again and see no obvious difference in that area. I even tried something like this:
and it had no effect. This should be a no brainer but I simply can not figure this out. Can someone please help?
javax.swing.JFrame jf = app.getMainFrame();