java.awt.component.repaint()

repaint

public void repaint()Repaints this component.

If this component is a lightweight component, this method causes a call to this component's paint method as soon as possible. Otherwise, this method causes a call to this component's update method as soon as possible.

Note: For more information on the paint mechanisms utilitized by AWT and Swing, including information on how to write the most efficient painting code, see Painting in AWT and Swing.


Since:
JDK1.0
See Also:
update(Graphics)

你可能感兴趣的:(java,swing)