Originally posted by Gong James:
To force a layout manager to re-layout the components in a container, you can invoke the container method called
a. validate()
b. repaint()
c. layout()
d. update();
I think the b is right .but given ans is a.
this question is the time i meet,can somebody give somethin about it .
repaint() is for painting purposes only (partial exposure, application painting efforts etc..)
validate() is the rite answer
Please refer the JDK API docs for further explanations
Ragu