View Single Post
Old 02-23-2006, 04:25 PM   #3 (permalink)
n0nsensical
Junkie
 
Location: San Francisco
Maybe too obvious, but did you import java.awt.Font?

Change it to
Code:
java.awt.Font f = new java.awt.Font("Arial", java.awt.Font.BOLD | java.awt.Font.ITALIC, 20);
JTextArea canvas = new JTextArea(30,70);
canvas.setFont(f);
and see if it complains about the first line.
__________________
"Prohibition will work great injury to the cause of temperance. It is a species of intemperance within itself, for it goes beyond the bounds of reason in that it attempts to control a man's appetite by legislation, and makes a crime out of things that are not crimes. A Prohibition law strikes a blow at the very principles upon which our government was founded." --Abraham Lincoln

Last edited by n0nsensical; 02-23-2006 at 09:43 PM..
n0nsensical is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76