/*
 * @(#)SomeLayouts.java    1.0 12/19/95 
 *
 * Copyright (c) 1995 Sun Microsystems, Inc. All Rights Reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for NON-COMMERCIAL purposes and without
 * fee is hereby granted provided that this copyright notice
 * appears in all copies. Please refer to the file "copyright.html"
 * for further important copyright and licensing information.
 *
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
import java.applet.*;
import java.awt.*;
/**
  *     Demonstrate Various layouts.
  */
public class SomeLayouts extends Applet {

	Button	b;

	public void init() {
		Panel	a = new Panel();
		TextField t = new TextField("TextField");
		a.add(t);
		Panel	b = new Panel();
		b.setLayout(new GridLayout(2,2));
		b.add(new Button("1"));
		b.add(new Button("2"));
		b.add(new Button("3"));
		b.add(new Button("4"));
		Panel	c = new Panel();
		c.add (new Label("Your Layout Manager"));
		add(a);	
		add(b);	
		add(c);	
	}
	public void paint( Graphics g) {
		g.setColor(Color.green);
		g.fill3DRect(0,0,size().width,size().height,true);
	}
}

