Question

I use a theme in a resource editor file inside the src folder to set a form's background color, but in runtime the form's background color is still blank ! Here is code :

public class Saisie extends Form implements ActionListener {
...
public Resources r;
public Hashtable tTheme;
...
public Saisie(MIDlet midlet)
{
    super("Saisie situation");
try {
        r = Resources.open("/resources.res");
        tTheme = r.getTheme("Theme");
        UIManager.getInstance().setThemeProps(tTheme);
    } catch (IOException ex) {
    }
    ...
}
...
}
Was it helpful?

Solution

Check that you set the bg transparency to 255. If you are making this change after creating the form make sure to refresh it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top