public void repaint()
Repaints this component. 
This method causes a call to this component's update method as soon as possible.public void update(Graphics g)
The AWT calls the update method in response to a call to repaintupdate or paint(not paint method). 
The updatemethod of Component does the following: Clears this component by filling it with the background color. 
Sets the color of the graphics context to be the foreground color of this component. 
Calls this component's paint method to completely redraw this component. public void paint(Graphics g)
Paints this component. repaint->update->paint