/*
 * @(#)GridTest.java	1.1 95/07/30 Arthur van Hoff
 *
 * 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.awt.*;

class GridPanel extends Panel {
    GridPanel(int rows, int cols) {
	setLayout(new GridLayout(rows, cols, 5, 5));
	add(new Button("gennaio"));
	add(new Button("febbraio"));
	add(new Button("marzo"));
	add(new Button("aprile"));
	add(new Button("maggio"));
	add(new Button("luglio"));
	add(new Button("agosto"));
	add(new Button("settembre"));
	add(new Button("ottobre"));
	add(new Button("novembre"));
	add(new Button("dicembre"));
    }
}

public class GridTest extends java.applet.Applet {
    public void init() {
	setFont(new Font("Dialog", Font.PLAIN, 16));
	setLayout(new BorderLayout());
	Panel p = new GridPanel(3, 4);
	add("Center", p);
	p.add(new GridPanel(4, 3));
	show();
    }
}

