×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    38

    how to add new theme in Lwuit jar

    hi

    i have maked new theme in theme creator and save in to project folder similar to src folder and i have also add this folder from right click to project and add resource and library option and then add res folder to project.
    but when i write this code for display theme-

    Resources r = Resources.open("/NewTheme.res");
    UIManager.getInstance().setThemeProps(r.getTheme("NewTheme"));

    then no any theme display. what i have to do please give any idea.

    thanks

  2. #2
    Registered User
    Join Date
    Dec 2009
    Location
    chennai
    Posts
    137

    Re: how to add new theme in Lwuit jar

    use like this,
    Resources r = Resources.open("/NewTheme.res");
    UIManager.getInstance().setThemeProps(resources.getTheme(r.getThemeResourceNames()[0]));
    Bharath... :)

  3. #3
    Registered User
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    38

    Re: how to add new theme in Lwuit jar

    hi bhakki Thanks for quick reply.
    i use this code but not display theme give some another idea
    Thanks
    Last edited by arvind kumar yadav; 2010-10-09 at 13:43.

Similar Threads

  1. Replies: 1
    Last Post: 2010-07-22, 12:46
  2. add lwuit in eclipse
    By yatibawri in forum Mobile Java General
    Replies: 8
    Last Post: 2010-03-04, 12:05
  3. LWUIT and JAR SIZE
    By jitu_goldie in forum Mobile Java General
    Replies: 9
    Last Post: 2009-05-26, 10:46
  4. LWUIT jar size
    By HasithaRandika in forum Mobile Java General
    Replies: 10
    Last Post: 2009-02-18, 11:06

Posting Permissions

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