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

嗨,我需要在 LWUIT 中打开我的资源文件,但首先如何创建资源文件?

4

2 回答 2

1

像这样使用并检查您的资源文件工作位置。

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

于 2011-01-18T09:50:12.033 回答
0

在 Shais LWUIT 博客上也有一些关于如何创建 LWUIT 资源文件的优秀教程

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

于 2011-01-19T01:12:44.027 回答