import java.awt.*;
import java.applet.Applet;
public class PanelUse2 extends Applet
{
  	Panel pn1 = new Panel();
  	GridLayout grd = new GridLayout (3,2,2,6);
  	Button bt10 = new Button ("10");
  	Button bt20 = new Button ("20");
  	Button bt30 = new Button ("30");
  	Button bt40 = new Button ("40");
  	public void init()
  	{
		pn1.setLayout (grd);
		pn1.add(bt10); 
		pn1.add(bt20);
		pn1.add(bt30); 
		pn1.add(bt40);
		pn1.setBackground (Color.blue);
		add(pn1);
  	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers.


comments powered by Disqus


Footer1