java me - Set the size of text in label in LWUIT j2me -



java me - Set the size of text in label in LWUIT j2me -

is there way set size(means font size,i want create text larger contaning font size of 17-20) of text in label in lwuit j2me.

you can set big text 2 ways.

use resourceedit , create new big font in font tab. alter label#unselected font new big font. use next code,

new label("sample").getstyle().setfont(font.createsystemfont(font.face_system, font.style_plain, font.size_large));

for more info see article, using font lwuit

java-me fonts label lwuit

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -