hi, i wrote the following applet. When i click on enter button, all the components are removed but the new textfields and buttons are not added. i would like to know how to remove the components and add new ones. ---------------- import java.awt.*; import java.awt.event.*; import java.io.*; import java.applet.*; public class admin extends Applet implements ActionListener { Font theFont = new Font("TimesRoman",Font.BOLD,14); Label l0,l1,l2,l3,l5,l6,l7; TextField t0,t1,t2,t3,t5,t6,t7; String s0,s1,s2,s3,s5; static String s6,s7; Button b1,b2; int i=0; public void entry (){ System.out.println("Inside Entry"); setLayout(new GridLayout (11,2)); add(l0); add(t0); add(l1); add(t1); add(l2); add(t2); add(l3); add(t3); add(l5); add(t5); add(b1); b1.addActionListener(this); repaint(); } public void init() { setBackground(Color.white); l0 = new Label("Number of Rounds (1-10) :"); l1 = new Label("Questions per Round (1-36) :"); l2 = new Label("Time (In Minutes) :"); l3 = new Label("Review Allowed (True/False):"); l5 = new Label("Minimum Score required :"); l6 = new Label("Login"); l7 = new Label("Password"); t0 = new TextField(10); t1 = new TextField(10); t2 = new TextField(10); t3 = new TextField("True",10); t5 = new TextField(10); t6 = new TextField(10); t7 = new TextField(10); b1 = new Button("Save"); b2 = new Button("Enter");