In J2ME repaint is the method of the canvas class, and is used to repaint the entire canvas class. To define the repaint method in you midlet follow the given syntax.
public final void repaint()
Output of the repaint method example
Source Code of UsingRepaintMethod.java
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial