SyntaxFix
Write A Post
Hire A Developer
Questions
Font myFont = new Font("Serif", Font.BOLD, 12);, then use a setFont method on your components like
Font myFont = new Font("Serif", Font.BOLD, 12);
JButton b = new JButton("Hello World"); b.setFont(myFont);