×

Discussion Board

Results 1 to 2 of 2

Thread: LWUIT Theme

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    16

    LWUIT Theme

    Hi all,

    Please help me , i am trying to apply the theme by lwuit.Below is my code . I have made a theme by resource editor and crated go folder in the project and put theme in the go folder and made a zip of the go folder and put it in to the resources folder of my project. But the problem is that i am getting a null pointer exception.It is opening the resource file by the statement Resources.open("/go/good.res"); but problem is getting the theme.


    r.getTheme("good") , getTheme function is returning null .





    public void startApp()
    {
    Display.init(this);
    Form form=new Form("Theme Demo");
    form.show();
    try
    {

    Resources r = Resources.open("/go/good.res");
    UIManager.getInstance().addThemeProps(r.getTheme("good"));
    }
    catch (IOException ex)
    {
    ex.printStackTrace();
    }



    }

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: LWUIT Theme

    put theme in the go folder and made a zip

    You dont need to do this, from LWUIT resource editor you get .res file directly dont zip it.

    Please it in .res folder of your project and rebuild it & repackage it.

    thanks,
    ~Amitabh

Similar Threads

  1. Replies: 2
    Last Post: 2010-06-23, 13:50
  2. Replies: 3
    Last Post: 2010-04-10, 19:10
  3. haii
    By jihan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2010-03-30, 20:40
  4. [moved] Help on LWUIT theme
    By poojs in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-08, 19:59
  5. Theme Studio 3 and n90 / n70 Problems
    By Ezz666 in forum Streaming and Video
    Replies: 0
    Last Post: 2006-02-04, 13:18

Posting Permissions

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