A very basic question i have in j2me?

Hi All,

I know that the constructor of Textfield has the following form

TextField(String label,String text,int maxSize,int constraints)

now suppose i want to set a specific color to the label string so that it has some color (Other than the default) so how to do that?

Thanks

Sagar

[318 byte] By [sagar123a] at [2007-11-27 8:36:45]
# 1

can't! fun huh? :) its true though, for Form/List/Alert Displayables you have no control over look-n-feel. you have 2 options ahead of you though..

1) use a canvas to do your drawing, and use synclast for your UI toolkit

- http://sourceforge.net/projects/synclast

- they havent made a release in years, but it IS an active project, just pull src from cvs

2) use J2MEPolish, which allows you to style/color your Form/List Displayable via css

- http://j2mepolish.org/

pandora_fooa at 2007-7-12 20:33:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...