Created
February 9, 2012 18:10
-
-
Save avh4/1781693 to your computer and use it in GitHub Desktop.
Creating a JFrame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JFrame window = new JFrame("My Game"); | |
MyGame game = new MyGame(); | |
window.add(game); | |
window.pack(); | |
window.setLocation(100, 100); | |
window.setVisible(true); | |
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment