J2ME repaint() problem

2/17/2009 01:35:00 ÖS

(0) Comments

If you are confused about Canvas repaint() method does'nt calls paint() method. And you also tried
                // serviceRepaints();
                // Display.getDisplay(Midlet.instance).callSerially(this);
                and still doesn't works.

Here is the solution;

Copy the paint() method and rename it customPaint(). In the code where repaint doesn't works, replace repaint() with customPaint().

And

In Netbeans

Tools - Java Platform Manager - J2ME - WTK - Open Preferences - Performance
Display refresh -> Select Immediate

Hopefully it works out.

Yasin Hasan Karanfil

0 Responses to "J2ME repaint() problem"

Yorum Gönder