×

Discussion Board

Results 1 to 4 of 4

Thread: Command font

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    3

    Command font

    Hi all,

    I´m using Netbeans with the Nokia 6131 NFC SDK, and I was wondering, is there a way to change font etc of the (.add) commands (exit, back, etc) you add?

    Tia!

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Command font

    Hi Tia,

    using standard Java ME Commands, there's no way to change their appearance. To have custom-styled commands, you should stick to a Canvas-based solution, like the one on Forum Nokia Wiki:

    http://wiki.forum.nokia.com/index.ph..._graphical_API

    Note that also many Java ME UI frameworks support for Canvas-based Commands, so you can also take a look at them to check if they're suitable for your needs.

    Pit

  3. #3
    Registered User
    Join Date
    Jan 2008
    Location
    Pune
    Posts
    24

    Re: Command font

    hi hugovdtuin,

    Command class accessing the default device specific font for displaying it into command’s menu. You may change font only when you create your own custom controlled commands on Canvas of j2me.
    The code:
    Font font = Font.getFont( , , );
    g.setFont(font);
    Where g is the Graphics object; but it could not be associated with Command class.
    If anybody has any other answer, please share.

    anjan

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    3

    Re: Command font

    Thnx jappit and anjan for the quick reply´s! I now realize a solution like:

    http://wiki.forum.nokia.com/index.ph..._graphical_API


    is probably best!
    Last edited by hugovdtuin; 2008-08-19 at 09:50.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×