<:> Fonts and backgrounds



To change the background color, insert something like

setBackground(Color.blue);

inside the paintComponent definition.

To change the pen color insert something like

g.setColor(Color.yellow);

before the drawString call.