Tags

links:
http://www.coderanch.com/t/333435/GUI/java/Whats-exact-difference-paint-repaint
http://stackoverflow.com/questions/1097366/java-swing-revalidate-vs-repaint

summary:
– repaint: repaint itself no layout no new child component
– revalidate: layout change or new component added (rememeber ‘l’ for layout)
– paint: in general we don’t directly call this, override paintComponent instead
– update: calls paint after erasing the entire component. need to override to avoid flickering (due to the erasing) during animations
– updateUI: call this if the pluggable look & feel change for a component after it has been made visible.

Advertisements