I have a frame. Two panels are attached to that frame. First panel consists of a question and answer fields. The second panel consists of a button. After answering the first question when the button is pressed the whole frame is getting disposing but I didn't want the whole frame to be disposed. Only the fist panel should be disposed and when the button is pressed the next question should appear. How can I acheive this?