import java.awt.*;
import java.applet.*;

public class Applet1 extends Applet
{
	Panel norte=new Panel();
	Panel oeste=new Panel();
	Panel centro=new Panel();
	Panel este=new Panel();
	Panel sur=new Panel();
	Button N1=new Button("N1");
	Button N2=new Button("N2");
    Button N3=new Button("N3");
	Button O1=new Button("O1");
	Button O2=new Button("O2");
    Button O3=new Button("O3");
	Button C1=new Button("C1");
	Button C2=new Button("C2");
    Button C3=new Button("C3");
	Button E1=new Button("E1");
	Button E2=new Button("E2");
    Button E3=new Button("E3");
	Button S1=new Button("S1");
	Button S2=new Button("S2");
    Button S3=new Button("S3");
	//String elemento[]={"uno","dos","tres","cuatro","cinco","seis","siete","ocho","nueve","diez"};
	//int i;
	public void init()
	{
		setBackground(Color.yellow);
		setForeground(Color.black);
        
		setLayout(new BorderLayout());
		
		norte.setLayout(new GridLayout());
		norte.add(N1);norte.add(N2);norte.add(N3);
		oeste.setLayout(new GridLayout());
		oeste.add(O1);oeste.add(O2);oeste.add(O3);
		centro.setLayout(new GridLayout());
		centro.add(C1);centro.add(C2);centro.add(C3);
		este.setLayout(new GridLayout());
		este.add(E1);este.add(E2);este.add(E3);
		sur.setLayout(new GridLayout());
		sur.add(S1);sur.add(S2);sur.add(S3);
		add("North",norte);
		add("West",oeste);
        add("Center",centro);
		add("East",este);
		add("South",sur);
				
		
		//setLayout(new GridLayout(3,4,10,10));
        //for(i=0;i<elemento.length;i++)
		//	add(new Button(elemento[i]));
					
	}

	
}
