I'm trying to add new elements to a frame, and get rid of the other elements that were there. For instance an applet where I add(new Label("Hello")) ... now I want "Hello" to disappear and I want to add(new Label("Goodbye").
I thought that either clearAll() or some use of repaint() would do it, but I can't get it to clear and then add components. I can't find any examples of doing this in my books....can anyone help me??
Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention. Check out this how-to article for more information.