Skip to main content

Font color

2 replies [Last post]
heziflash
Offline
Joined: 2008-06-03
Points: 0

Hi

I'm creating a Button System Font "CLICK TO START". The color of "CLICK TO START" is green. I want to chage it to black. How can i do it?

Here is the code:
Button b = createFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_BOLD | Font.STYLE_ITALIC, Font.SIZE_LARGE), "CLICK TO START");

Thanks,
Hezi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
heziflash
Offline
Joined: 2008-06-03
Points: 0

Thanks. it works.

Francis De Brabandere

b.getStyle().setXXX

On Tue, Jul 29, 2008 at 1:50 PM, wrote:
> Hi
>
> I'm creating a Button System Font "CLICK TO START". The color of "CLICK TO START" is green. I want to chage it to black. How can i do it?
>
> Here is the code:
> Button b = createFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_BOLD | Font.STYLE_ITALIC, Font.SIZE_LARGE), "CLICK TO START");
>
> Thanks,
> Hezi
> [Message sent by forum member 'heziflash' (heziflash)]
>
> http://forums.java.net/jive/thread.jspa?messageID=290041
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net