hi ppl,
I want change color of the font on my application and the size too, someone known good tutorial to teach-me.
thk
hi ppl,
I want change color of the font on my application and the size too, someone known good tutorial to teach-me.
thk
Hi stein,
Color can be changed by calling method SetColor of Graphics class. The size is changed by providing proper arguments to getFont method of Font class:
public static Font getFont(int face,
int style,
int size)
MIDP Terminal Emulation, Part 3: Custom Fonts for MIDP
http://developers.sun.com/mobility/m...termemulator3/
Below is an article about custom fonts to help you as well.
Kind regards![]()
Juarez Alvares Barbosa Junior - Brazil
hi, i have look the link that you give but i can´t understand.
It's possible change color and size of letter on class extends midlet? if yes you could give me a example?
thy:
well if u need exact font and color u can use polish for this, it support adding font package into it, then u can choose color, font style and many things.
well, i´m using midp 1.0 and when isue the class Graphic with the method setColor or setFont give me error and emulator shutdown.
Could someone give-me a link to a tutorial or a small example.
ty.....
Hi stein,
It makes no sense, in MIDP 1.0 you have the methods below:
Graphics
void public void setColor (int RGB)
void public void setColor (int red, int green, int blue)
and also:
Font
Font public static Font getFont (int face, int style, int size)
Check JSR 37 - MIDP 1.0 in case you have any doubts. And also make sure your development environment (IDE, SDKs, etc) are installed properly.
Kind regards,
Juarez Alvares Barbosa Junior - Brazil