window now actually exits when it exits...

master
marcus13345 2014-10-09 23:20:49 -04:00
parent 6d6c799904
commit f44645cdad
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ public class Engine extends Canvas implements KeyListener, MouseMotionListener,
// set up window
frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(WIDTH, HEIGHT);
frame.add(this);
frame.pack();