I'm trying to change the font in a text field,
but it won't compile. This is what I did:Font
boldFont = new Font ("Courier", Font.BOLD,
12);errorF.setFont(boldFont);The error
is:C:\JavaComputerScience\Semester2\coursework\studentsProj\ListRecFrame.jav\
a:55: <identifier>
expected errorF.setFont(boldFont);
^C:\JavaComputerScience\Semester2\coursework\studentsProj\ListRecFrame.java:\
55: cannot resolve symbolsymbol : class setFont
location: package errorF errorF.setFont(boldFont);
^2 errorsCan anyone help?