Skip to main content

Setting the text color !!

1 reply [Last post]
Anonymous

Hello all,
In j2me is there any API to set the text color ?
setColor() method within Graphics class is used to paint the canvas but not to set the color for text :(

If so pls let me know.

With Best Regards,
Raghavendra. K. Naik
Analyst - ISI Practice
PA Consulting Group
* Nitesh Broadway, M.G.Road, Bangalore
> * +91 25318855 - ext. 28381
> * Raghavendra.Naik@paconsulting.com
> * http://www.paconsulting.com
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ian Strain

if you want white text on black gackground
then set the colour to black and fill the canvas
then set the colour to white and draw the string

ie
setcolor(black);
fillrect(0,0, getWidth(), getHeight());
setColor(white);
drawString("the string, 0,0);

Raghavendra K. Naik wrote:
>
> Hello all,
> In j2me is there any API to set the text color ?
> setColor() method within Graphics class is used to paint the canvas
> but not to set the color for text :(
>
> If so pls let me know.
>
> *With Best Regards,*
> *Raghavendra. K. Naik*
> *Analyst - ISI Practice*
> *PA Consulting Group*
> ? Nitesh Broadway, M.G.Road, Bangalore
> ( +91 25318855 - ext. 28381
> ** * Raghavendra.Naik@paconsulting.com
> 8 _http://www.paconsulting.com_
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".