Forcing repaints in J2SE

Is there a way to force immediate repaints on a J2SE Canvas as in the MIDP method Canvas.serviceRepaints()?
[121 byte] By [clayteel] at [2007-9-26 7:51:30]
# 1
MIDP's Canvas.serviceRepaints() forces any pending requests for repaint()s.In J2SE, closest is update() which is what's called if there is a pending repaint().You can do this in J2SE:canvas // is your Canvascanvas.update(canvas.getGraphics());
ashutosh at 2007-7-1 18:03:38 > top of Java-index,Security,Cryptography...