Hey everyone, I’ve run into a weird problem with System.exit, basically I have this code:
public void windowClosing(WindowEvent e) {
System.err.println("WindowClosing");
System.exit(0);
}
When I close the window windowClosing IS called because WindowClosing is written to the console, however the program does not exit and I can only terminate it by using Task Manager, does anyone know what could be causing this problem?
SecurityException is also not thrown when System.exit is called, Running Oracle JRE7, Windows 8.1