How does repaint work?

If I have a Component inside a JPanel, inside a JFrame and I call repaint on the Component, does that also repaint all other Components in the entire JFrame and JPanel, or does it just repaint that single Component that I called repaint on?
[247 byte] By [AsSiDuL0Usa] at [2007-11-27 8:11:04]
# 1
repaint asks java to have the GUI thread repaint just the component you repainted on.In a JFrame, the way that paint is implemented, paint will also paint all of its child components.
tjacobs01a at 2007-7-12 19:54:54 > top of Java-index,Desktop,Core GUI APIs...
# 2
But while I'm at it, why even ask us? You really should RTFM! (sry just haven't used RTFM in a long time :)) http://java.sun.com/javase/6/docs/api/java/awt/Component.html#repaint()
tjacobs01a at 2007-7-12 19:54:54 > top of Java-index,Desktop,Core GUI APIs...
# 3
It repaints that component and its child components, but does not repaint parent components or sibling components.
camickra at 2007-7-12 19:54:54 > top of Java-index,Desktop,Core GUI APIs...
# 4
thanks.
AsSiDuL0Usa at 2007-7-12 19:54:54 > top of Java-index,Desktop,Core GUI APIs...