import java.awt.*;
import java.applet.Applet;
public class tcenter extends Applet
{
public void init(){
setLayout(new BorderLayout());
Panel p2=new Panel();
p2.add(new Button("n"),BorderLayout.NORTH);
p2.add(new Button("s"),BorderLayout.SOUTH);
Panel p =new Panel();
p.setBackground(Color.white);
this.add(p,BorderLayout.CENTER);// 1
p.add(p2,BorderLayout.CENTER);
}
}
what is this refer to in line 1 as if i replace it with tcenter it gives me error
2: why the result is like flow layout i.e. two buttons appearing in center not on north and south