Created
August 12, 2016 00:50
-
-
Save pinglunliao/f3946c8b73c07bb3ba77528ca5b1252b 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 java.awt.Graphics; | |
import java.awt.Graphics2D; | |
public class GameBoard extends javax.swing.JPanel { | |
public GameBoard() { | |
} | |
@Override | |
public void paintComponent(Graphics g) { | |
super.paintComponent(g); | |
Graphics2D g2d = (Graphics2D) g; | |
g2d.drawString("Hello Java Game Developer!", 50, 50); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment