Created
August 12, 2016 00:51
-
-
Save pinglunliao/94729d10aec4e23cbd4061ed09791169 to your computer and use it in GitHub Desktop.
This file contains 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
package holan.tw; | |
import javax.swing.JFrame; | |
public class GameForm extends JFrame { | |
public GameForm() { | |
createUI(); | |
} | |
private void createUI() { | |
add(new GameBoard()); | |
setTitle("GameTutor"); | |
setSize(330, 330); | |
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
setLocationRelativeTo(null); | |
} | |
public static void main(String args[]) { | |
/* Create and display the form */ | |
java.awt.EventQueue.invokeLater(new Runnable() { | |
public void run() { | |
new GameForm().setVisible(true); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment