我想使用 LWUIT 以良好的方式制作我的应用程序的 GUI。但我面临的问题是我无法使用主题。
我已经关注了这个链接The Lightweight User Interface Toolkit LWUIT An Introduction。
我曾使用此代码加载主题。但这给了我例外。
try {
Resources r = Resources.open("theme.res");
UIManager.getInstance().setThemeProps(r.getTheme("theme"));
} catch (IOException ioe) {
System.out.println("Couldn't load theme.");
}