Created
April 7, 2013 03:39
-
-
Save joepreludian/5328844 to your computer and use it in GitHub Desktop.
CodeSnippet - Java - Texto no objeto Graphics
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
//Pra colocar um texto | |
g.setColor(Color.GREEN); | |
//Determina a fonte e seu tamanho | |
Font font = new Font("Callibri", Font.PLAIN, 30); | |
g.setFont(font); | |
//Desenha o texto | |
g.drawString("Pedro maluco!", 25, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment