SyntaxFix
Write A Post
Hire A Developer
Questions
Font myFont = new Font ("Courier New", 1, 17);
The 17 represents the font size. Once you have that, you can put:
g.setFont (myFont); g.drawString ("Hello World", 10, 10);