Skip to content

Instantly share code, notes, and snippets.

@pinglunliao
Created August 12, 2016 00:51
Show Gist options
  • Save pinglunliao/94729d10aec4e23cbd4061ed09791169 to your computer and use it in GitHub Desktop.
Save pinglunliao/94729d10aec4e23cbd4061ed09791169 to your computer and use it in GitHub Desktop.
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