protected void onSave() { Preferences.set("theme", cmbTheme.getSelectedString()); Resources res = null; try { res = Resources.openLayered("/theme"); } catch (IOException e) { MessageBox.OK("Error", e.toString()); } if (res != null) { UIManager.getInstance().setThemeProps(res.getTheme(Preferences.get("theme", "Native"))); Display.getInstance().getCurrent().refreshTheme(); } }