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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -