How to do?

I have frame and want to update the content after doing the followingJFrame .setVisible(true);is there any way to do this?Thanks for help.
[166 byte] By [raghu182a] at [2007-11-27 1:20:27]
# 1
panel.add( someComponent );panel.revalidate();
camickra at 2007-7-11 23:57:27 > top of Java-index,Desktop,Core GUI APIs...
# 2
It worked !Thanks.
raghu182a at 2007-7-11 23:57:27 > top of Java-index,Desktop,Core GUI APIs...
# 3
Please make the subject a smaill description of your querry, so that other developers who is having the same doubt can make use of this very easily.How to do? is a bad subject line.
Mathewhaia at 2007-7-11 23:57:27 > top of Java-index,Desktop,Core GUI APIs...