Skip to main content

LWUIT font size change possibility

7 replies [Last post]
digitalsol
Offline
Joined: 2009-10-11
Points: 0

Hi guys,
I want to know can this library be used in order to change the font size of every ui component, including commands ?

Thank you in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
digitalsol
Offline
Joined: 2009-10-11
Points: 0

Oh, and something else.

Currently I have one project written entirely on standard J2ME.
Can I use this library in order to change the font size of all components which are not LWUIT ?

David Lucena

No.

--- El lun, 12/10/09, lwuit-users@mobileandembedded.org escribió:

> De: lwuit-users@mobileandembedded.org
> Asunto: Re: LWUIT font size change possibility
> Para: users@lwuit.dev.java.net
> Fecha: lunes, 12 octubre, 2009 12:20
> Oh, and something else.
>
> Currently I have one project written entirely on standard
> J2ME.
> Can I use this library in order to change the font size of
> all components which are not LWUIT ?
> [Message sent by forum member 'digitalsol' (digitalsol@abv.bg)]
>
> http://forums.java.net/jive/thread.jspa?messageID=367628
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

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

digitalsol
Offline
Joined: 2009-10-11
Points: 0

Thank you very much for your answers.

David Lucena

Yes.

--- El dom, 11/10/09, lwuit-users@mobileandembedded.org escribió:

> De: lwuit-users@mobileandembedded.org
> Asunto: LWUIT font size change possibility
> Para: users@lwuit.dev.java.net
> Fecha: domingo, 11 octubre, 2009 7:56
> Hi guys,
> I want to know can this library be used in order to change
> the font size of every ui component, including commands ?
>
> Thank you in advance
> [Message sent by forum member 'digitalsol' (digitalsol@abv.bg)]
>
> http://forums.java.net/jive/thread.jspa?messageID=367583
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

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

Pablo Vagliati

Just change the default font (font with component selection) of the theme
used by your application.

2009/10/11 David Lucena

> Yes.
>
> --- El dom, 11/10/09, lwuit-users@mobileandembedded.org <
> lwuit-users@mobileandembedded.org> escribió:
>
> > De: lwuit-users@mobileandembedded.org > >
> > Asunto: LWUIT font size change possibility
> > Para: users@lwuit.dev.java.net
> > Fecha: domingo, 11 octubre, 2009 7:56
> > Hi guys,
> > I want to know can this library be used in order to change
> > the font size of every ui component, including commands ?
> >
> > Thank you in advance
> > [Message sent by forum member 'digitalsol' (digitalsol@abv.bg)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=367583
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> > For additional commands, e-mail: users-help@lwuit.dev.java.net
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
[att1.html]

Pablo Vagliati

with=without sorry

2009/10/11 Pablo Vagliati

> Just change the default font (font with component selection) of the theme
> used by your application.
>
> 2009/10/11 David Lucena
>
> Yes.
>>
>> --- El dom, 11/10/09, lwuit-users@mobileandembedded.org <
>> lwuit-users@mobileandembedded.org> escribió:
>>
>> > De: lwuit-users@mobileandembedded.org <
>> lwuit-users@mobileandembedded.org>
>> > Asunto: LWUIT font size change possibility
>> > Para: users@lwuit.dev.java.net
>> > Fecha: domingo, 11 octubre, 2009 7:56
>> > Hi guys,
>> > I want to know can this library be used in order to change
>> > the font size of every ui component, including commands ?
>> >
>> > Thank you in advance
>> > [Message sent by forum member 'digitalsol' (digitalsol@abv.bg)]
>> >
>> > http://forums.java.net/jive/thread.jspa?messageID=367583
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> > For additional commands, e-mail: users-help@lwuit.dev.java.net
>> >
>> >
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>
>>
>
[att1.html]

gavdian
Offline
Joined: 2010-07-13
Points: 0

Hi Pablo,

I have the same problem.
In fact, I can change the Style of a component using the following code:
e.g.

		Style s4 = UIManager.getInstance().getComponentStyle("ComboBoxItem");
s4.setFont(FeaturesMIDlet.myMIDlet.getResources().getFont("comboBoxFont"));
UIManager.getInstance().setComponentStyle("ComboBoxItem", s4);

However, like that I have to change the style of ALL the components I use in my application

Is there a way to change the default font of the theme
used by my application?

If so, can you please provide me the code?

Thank you.