AliSherKashif / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Weird repainting issue #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In J2ME run the following code after DisplayInit();

            Label lbl = new Label(Image.createImage("/splash.png"));
        Style style = lbl.getStyle();
        style.setBgColor(0xFF0000);
        style.setAlignment(Component.CENTER);

            Form form = new Form();
        form.setLayout(new BorderLayout());
        form.addComponent(BorderLayout.CENTER, lbl);
        form.show();

Also there seems to be a bug in J2ME with this code. As soon as this form is 
painted, you see a repaint twice. Once with one type of padding and the second 
time with some other padding. The padding is white.

Its not always reproducible - depends on timing and speed of PC/emulator.

Original issue reported on code.google.com by jkoo...@gmail.com on 11 Jul 2012 at 2:45

GoogleCodeExporter commented 9 years ago
That's a device bug.

Original comment by shai.almog on 11 Jul 2012 at 3:37