title: How to use LWUIT theme
body: <p>I want to use LWUIT for making GUI of my application in good way. But the problem I am facing is I am not able to use a theme.  </p>
  
  <p>I had followed this link <a href="http://www.java2s.com/Article/Java/J2ME-Wireless/The_Lightweight_User_Interface_Toolkit_LWUIT_An_Introduction.htm" rel="nofollow noreferrer">The Lightweight User Interface Toolkit LWUIT An Introduction</a>.</p>
  
  <p>I had used this code to load the theme. But it is giving me exception.</p>
  
  <pre><code>try {
  Resources r = Resources.open("theme.res");
  UIManager.getInstance().setThemeProps(r.getTheme("theme"));
  } catch (IOException ioe) {
  System.out.println("Couldn't load theme.");
  }
  </code></pre>