Theme’s generally used for changing the appearance of each components in our application.

A theme is a collection of properties, such as colors, fonts, and images. You can load a theme from a resource file and apply to update all the components in your application.

try {
Resources r = Resources.open(“/res/javaTheme.res”);
UIManager.getInstance().setThemeProps(r.getTheme(“javaTheme”));
} catch (IOException ioe) {
System.out.println(“Couldn’t load theme.”);
}

we can edit the theme in resource editor.. Download this Here
1. After download, Extract LWUIT_1_3
2. Open ResourceEditor.exe

This article is about: Code Sample, J2ME, LWUIT,

Stacktips

StackTips provides programming tutorials, how-to guides and code snippets on different programming languages. Follow us on Twitter

Join The Discussion

Please note: We reserve the right to delete comments that contains snarky remarks, offensive or off-topic. To know more read our comments policy.