×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    103

    Red face TO USE LWUIT theme

    Hello,
    I want to use LWUIT for making GUI of my application in good way.But the problem i am facing is i cant able to use he theme.
    I am newbe of LWUIT.
    I had followed this link---http://www.java2s.com/Article/Java/J2ME-Wireless/The_Lightweight_User_Interface_Toolkit_LWUIT_An_Introduction.htm
    I had used this code to load the theme.But it is giving me exception.
    try {
    Resources r = Resources.open("theme.res");
    UIManager.getInstance().setThemeProps(r.getTheme("theme"));
    } catch (IOException ioe) {
    System.out.println("Couldn't load theme.");
    }
    Please help me out of this.it is very urgent.

    Thank you

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: TO USE LWUIT theme

    Let us continue in your original thread..here..

    What exception are you getting when you are loading the theme?

    I guess you are missing the forward slash before the name of the res file.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. how to add new theme in Lwuit jar
    By arvind kumar yadav in forum Mobile Java General
    Replies: 2
    Last Post: 2010-10-09, 08:51
  2. How to use LWUIT jars...........
    By saran.tli in forum Mobile Java General
    Replies: 4
    Last Post: 2010-09-01, 08:03
  3. How to use GroupLayout in LWUIT
    By Legion8081 in forum Mobile Java General
    Replies: 3
    Last Post: 2010-08-06, 11:33
  4. how to use GroupLayout on LWUIT
    By elaltaico in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-04-30, 06:24
  5. How to use replace method of LWUIT form?
    By neeraja.nokia in forum Mobile Java General
    Replies: 0
    Last Post: 2009-01-24, 04:24

Posting Permissions

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