Dear all .. How can I change the color of text with out using "graphic g"?? good bye sara
Joined: Jan 22, 2003
I guess you mean: "How can I change the text colour in MIDP high-level UI screens (Form, List, TextBox)?". The simple answer is: you can't - these screens use the phone's native fonts and colour settings. You can only change the text colour in MIDP low-level UI screens (Canvas, MIDP 2.0 GameCanvas) and in MIDP 2.0 'CustomItems' (items on a form which are each like a little Canvas). These all use that 'Graphics g'.
Joined: May 07, 2004
Thank you David .. ok if I can't change the text colour in MIDP high-level UI screens... can I highlights the text ?? Sara
Joined: Mar 07, 2002
You can underline text, make it bold or use any supported font in the high level API. Refer to the "Font" and StringItem" classes in the javadoc.