public void setFont(int size) { Font font = Font.getFont(Font.FACE_SYSTEM, 0, size); g.setFont(font); }