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

php - Hide output during test execution -

java - Drawing vector images on PDF with PDFBox -

Qt4: how to send QString inside a struct via QSharedMemory -