Skip to main content

character " - " and " + "..can't display...why..?

2 replies [Last post]
sawal_xp
Offline
Joined: 2008-02-12

hi..
i got problem again ..
when i create Label and set the text like this :

Label newLabel = Label("-10");

and then in the display when i running my project..
the label not show character " - ", in there just 10, not -10....why..?
same like this..

Button newBT = Button("+New");
this problem will find if i use to Button, will found like problem in label..

thx...^_^

Reply viewing options

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

Hi,
when creating a bitmap font you need to specify the supported charset
and the current drop doesn't include "-" and "+" in the default charset.
Just recreate your bitmap font and make sure to add these two
characters in the charset field.

These will be part of the default in the next drop.
Thanks,
Shai.

> hi..
> i got problem again ..
> when i create Label and set the text like this :
>
> Label newLabel = Label("-10");
>
> and then in the display when i running my project..
> the label not show character " - ", in there just 10, not
> -10....why..?
> same like this..
>
> Button newBT = Button("+New");
> this problem will find if i use to Button, will found like problem
> in label..
>
> thx...^_^
> [Message sent by forum member 'sawal_xp' (sawal_xp)]
>
> http://forums.java.net/jive/thread.jspa?messageID=285267
>
> ---------------------------------------------------------------------
> 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

sawal_xp
Offline
Joined: 2008-02-12

thaks shai...
i understand now..;)

sorry i'm really new in java, j2me too..so i always asking many question to you..
but thaks for your time to answer me or our question...:)

thaks shai...:)