0

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) {
    }
    ...
}
...
}
pheromix
  • 18,213
  • 29
  • 88
  • 158

1 Answers1

1

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

Shai Almog
  • 51,749
  • 5
  • 35
  • 65