0
Resources res = Resources.open("/myTheme.res");
UIManager.getInstance().setThemeProps(res.getTheme("myTheme"));

hi I need to open my resource file in LWUIT but how to create a resource file in the first place?

bharath
  • 14,283
  • 16
  • 57
  • 95
garima
  • 5,154
  • 11
  • 46
  • 77

2 Answers2

1

use like this and check your resource file work place also.

UIManager.getInstance().setThemeProps( res.getTheme(res.getThemeResourceNames()[0]));

bharath
  • 14,283
  • 16
  • 57
  • 95
  • is there any software available for this purpose as well? – garima Jan 18 '11 at 10:31
  • 1
    LWUIT 1.4 ResourceEdit having all designing features. But if u want to new ResourceEdit means see this link and click the launch in key features, https://lwuit.dev.java.net/ – bharath Jan 18 '11 at 10:48
0

There is also some excellent tutorials on how to create a LWUIT resource file on the Shais LWUIT blog

http://lwuit.blogspot.com/search/label/LWUIT%20GUIBuilder%20ResourceEditor%20tutorial

kgutteridge
  • 8,727
  • 1
  • 18
  • 23