Search code examples
java-meresourceslwuit

how to create LWUIT res file?


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?


Solution

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

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