Skip to main content

TextField with Font

1 reply [Last post]
heziflash
Offline
Joined: 2008-06-03
Points: 0

Hi

How do i combine between TextField and Font?

Thanks,
Hezi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Francis De Brabandere

You can do it in the theme editor or in code like this:

(it's explained in the Developer_Guide.pdf in the LWUIT distribution zip)

TextField field = new TextField("test");
Font font = Font.createSystemFont(Font.FACE_SYSTEM,
Font.STYLE_BOLD,
Font.SIZE_MEDIUM);
//Font.getBitmapFont("Serif");
field.getStyle().setFont(font );

On Wed, Jul 16, 2008 at 6:59 PM, wrote:
> Hi
>
> How do i combine between TextField and Font?
>
> Thanks,
> Hezi
> [Message sent by forum member 'heziflash' (heziflash)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287093
>
> ---------------------------------------------------------------------
> 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