java - Text area's Font family is not changing -
in java program, created textarea
menubar
, unable change font family of textarea
only
ta.setfont(new font(font.serif,font.plain,14));
is working since here used font
class constants.
but not working...
ta.setfont(new font("arial",font.plain,14));
after statement font in textarea
still default. neither "comic sans ms" working..
try:
textarea.setfont(new font("arial", font.plain, 14));
Comments
Post a Comment