Thursday, September 25, 2008

Using Styles, Themes, and Painters with LWUIT

Biswajit Sarkar wrote an interesting article for java.net about themeing and styling LWUIT. The article features helpful diagrams and illustrations to explain some of the UI concepts behind LWUIT themeing.
The article leverages the resource editor which is a very good thing since the resource editor is indeed somewhat under documented.

2 comments:

  1. hi
    I have a problem with theme update. When I change a theme using:
    Resources r = null;
    try {
    r = Resources.open("/res/largeTheme.res");
    } catch (IOException ex) {
    ex.printStackTrace();
    }
    UIManager.getInstance().setThemeProps(r.getTheme("javaTheme"));
    Display.getInstance().getCurrent().refreshTheme();

    While all labels, fonts etc are changed, the titles of the forms and of the soft keys remain the same.
    why the update at my theme doesn't apply to all the components I use?

    ReplyDelete