In a java program, I created a TextArea
a MenuBar
,
But I am unable to change font family of the TextArea
Only
ta.setFont(new Font(Font.SERIF,Font.PLAIN,14));
is working since here I used Font
class constants.
But this is not working...
ta.setFont(new Font("Arial",Font.PLAIN,14));
After this statement the font in TextArea
is still default. Neither "Comic Sans MS" is working..