Original Post
I am using a drawing loop inside my java swing application, I have decided there are multiple ways to exit my application and setup my render loop as so inside my class constructo (extending JFrame) while(!isClosed){ // game drawing and updating } dispose(); // we have exited the game, right? inside the windowClosed(WindowEvent e) event I have set this variable to false, as well as inside the keyPressed event that handles my input, with the VK_ESCAPE key. The drawing ends but the window remains after I have exited my drawing loop. Thanks, Kris