Hello,

I am trying to implement a CustomItem. It seems that the paint(Graphics, int, int) is never invoked on my item. The same code runs ok in the default emulator and sony ericsson emulator.

Here is a print screen of the three emulators.
http://cosminr.home.ro/emulators.png

The code of my custom item is:

Code:
public class DummyItem extends CustomItem {
    
    public DummyItem(String label) {
        super(label);
    }

    protected int getMinContentWidth() {
        return 240;
    }

    protected int getMinContentHeight() {
        return 60;
    }

    protected int getPrefContentWidth(int arg0) {
        return 240;
    }

    protected int getPrefContentHeight(int arg0) {
        return 60;
    }

    protected void paint(Graphics g, int w, int h) {
        g.setColor(0x00000000);
        g.fillRect(0, 0, w, h);
        g.setColor(0xFF888888);
        g.fillRect(10, 10, w - 10, h - 10);
    }
    
}
Any hints are greately appreciated.

Regards,

Cosmin