Hi,
You mean to say you want to change the contents of Edit Panel?!
If, so before removing existing components or adding new components call the method invalidate()
then after everything has been modified call the method validate(). in some case you may need to call repaint() also after validate().
But, I suggest you use a new panel and use the help of the card layout to do the switching. If you are not using the card layout, then I don't understand why you have created it!! I got misleaded!!
regards,
Shashi