Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User stein's Avatar
    Join Date
    Jul 2007
    Posts
    41
    hi ppl,
    I want change color of the font on my application and the size too, someone known good tutorial to teach-me.

    thk

  2. #2
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi stein,

    Color can be changed by calling method SetColor of Graphics class. The size is changed by providing proper arguments to getFont method of Font class:

    public static Font getFont(int face,
    int style,
    int size)

    MIDP Terminal Emulation, Part 3: Custom Fonts for MIDP
    http://developers.sun.com/mobility/m...termemulator3/

    Below is an article about custom fonts to help you as well.

    Kind regards
    Juarez Alvares Barbosa Junior - Brazil

  3. #3
    Registered User stein's Avatar
    Join Date
    Jul 2007
    Posts
    41
    hi, i have look the link that you give but i can´t understand.

    It's possible change color and size of letter on class extends midlet? if yes you could give me a example?

    thy:

  4. #4
    Super Contributor prakash.raman's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539
    well if u need exact font and color u can use polish for this, it support adding font package into it, then u can choose color, font style and many things.

  5. #5
    Registered User stein's Avatar
    Join Date
    Jul 2007
    Posts
    41
    well, i´m using midp 1.0 and when isue the class Graphic with the method setColor or setFont give me error and emulator shutdown.
    Could someone give-me a link to a tutorial or a small example.

    ty.....

  6. #6
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi stein,

    It makes no sense, in MIDP 1.0 you have the methods below:

    Graphics
    void public void setColor (int RGB)
    void public void setColor (int red, int green, int blue)

    and also:

    Font
    Font public static Font getFont (int face, int style, int size)

    Check JSR 37 - MIDP 1.0 in case you have any doubts. And also make sure your development environment (IDE, SDKs, etc) are installed properly.

    Kind regards,
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. [announce] Google Directions via PyS60
    By neil.young in forum Python
    Replies: 29
    Last Post: 2008-02-15, 10:55
  2. Displayable change (again)
    By Wontar in forum Mobile Java General
    Replies: 0
    Last Post: 2007-01-13, 16:14
  3. how to change ircomm to discover device in time-slot 2
    By skylakezzz in forum Symbian C++
    Replies: 0
    Last Post: 2003-10-06, 12:28
  4. how to change ircomm to discover device in time-slot 2
    By skylakezzz in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-10-06, 12:27
  5. change focus
    By f_alonso_1 in forum Symbian C++
    Replies: 0
    Last Post: 2003-07-17, 13:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved