what is the command to use little characters in java midlets programming?
|
|
0
|
|
|
|
Reply
|
shearer (5)
|
6/13/2004 5:20:59 PM |
|
"Shearer" <shearer@libero.it> wrote in news:%10zc.107659$Qc.4128454
@twister1.libero.it:
> what is the command to use little characters in java midlets programming?
>
>
>
You have to ask pretty please.
javax.microedition.lcdui.Font.getFont() -- specify size as SIZE_SMALL.
Hugh
|
|
0
|
|
|
|
Reply
|
beyerxyzzy (20)
|
6/14/2004 6:39:32 PM
|
|
Shearer wrote:
> what is the command to use little characters in java midlets programming?
Do you mean lower case characters? There is no API for controlling what the
default text is on any handset.
--
/**
* @author Darryl L. Pierce <mcpierce@myrealbox.com>
* @see The J2ME FAQ <http://mypage.org/mcpierce/j2mefaq.html>
* @quote "What do you care what others think, Mr. Feynman?"
* @geek echo '$_ = "Jvtu bopuifs Pfsm ibdlfs."; y/a-z/za-y/; print' |
perl
*/
|
|
0
|
|
|
|
Reply
|
mcpierce (414)
|
6/14/2004 9:55:14 PM
|
|
I mean the character little in size, not lower case
"Darryl L. Pierce" <mcpierce@myrealbox.com> ha scritto nel messaggio
news:4996ec2ff08098558971769b1a98e312@news.teranews.com...
> Shearer wrote:
>
> > what is the command to use little characters in java midlets
programming?
>
> Do you mean lower case characters? There is no API for controlling what
the
> default text is on any handset.
>
> --
> /**
> * @author Darryl L. Pierce <mcpierce@myrealbox.com>
> * @see The J2ME FAQ <http://mypage.org/mcpierce/j2mefaq.html>
> * @quote "What do you care what others think, Mr. Feynman?"
> * @geek echo '$_ = "Jvtu bopuifs Pfsm ibdlfs."; y/a-z/za-y/; print' |
> perl
> */
|
|
0
|
|
|
|
Reply
|
shearer (5)
|
6/15/2004 8:17:58 AM
|
|
I have programmed since yesterday, can you tell me a concrete example?
I have included javax.microedition.lcdui.*
I have tried ti do Font.getFont(SIZE_SMALL) but compilers give me error.
e:\Programmi\WTK104\apps\Fanizzi\src\Fanizzi.java:19: cannot resolve symbol
symbol : variable SIZE_SMALL
location: class Fanizzi
Font.setFont(SIZE_SMALL);
^
1 error
"Hugh Beyer" <beyerxyzzy@acm.org> ha scritto nel messaggio
news:Xns9508950F2463Ahughrbeyeracmorg@63.223.5.254...
> "Shearer" <shearer@libero.it> wrote in news:%10zc.107659$Qc.4128454
> @twister1.libero.it:
>
> > what is the command to use little characters in java midlets
programming?
> >
> >
> >
>
> You have to ask pretty please.
> javax.microedition.lcdui.Font.getFont() -- specify size as SIZE_SMALL.
>
> Hugh
>
|
|
0
|
|
|
|
Reply
|
shearer (5)
|
6/15/2004 8:31:19 AM
|
|
"Shearer" <shearer@libero.it> wrote in news:rtyzc.58434$Wc.1802950
@twister2.libero.it:
> I have programmed since yesterday, can you tell me a concrete example?
> I have included javax.microedition.lcdui.*
> I have tried ti do Font.getFont(SIZE_SMALL) but compilers give me error.
>
> e:\Programmi\WTK104\apps\Fanizzi\src\Fanizzi.java:19: cannot resolve symbol
>
> symbol : variable SIZE_SMALL
>
> location: class Fanizzi
>
> Font.setFont(SIZE_SMALL);
>
> ^
>
> 1 error
>
OK, but you do have the javadocs, don't you? You're not going anywhere
without them. I gave you shorthand-- the method is:
public static Font getFont(int face, int style, int size)
so the call is
Font.getFont(FACE_PROPORTIONAL, STYLE_PLAIN, SIZE_SMALL)
There are other options for face and style of course.
Note your code snippet above has a typo--it's calling "Font.setFont" not
"Font.getFont".
Hugh
|
|
0
|
|
|
|
Reply
|
beyerxyzzy (20)
|
6/15/2004 5:14:29 PM
|
|