J2ME repaint() problem
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.
0 Responses to "J2ME repaint() problem"
Yorum Gönder