/************************************************************************
 * Copyright (C) 2000 thinSoft Corporation, All Rights Reserved.
 *
 * @version: $Id: ChessLayoutExample.java,v 1.1 2000/07/14 05:53:16 gene Exp $
 * @author Gene Olson gene@thinSoft.com
 ************************************************************************/

package thinSoft.ui_test;

import java.awt.*;
import java.applet.*;

import thinSoft.ui.ChessLayout;
import thinSoft.ui.ChessPiece;

public class ChessLayoutExample extends Applet {

    public void init() {
	setFont(new Font("Helvetica", Font.PLAIN, 14));

	ChessLayout layout = new ChessLayout();
	layout.setContainer(this);

	layout.setRowElasticity(1, 4);

	ChessPiece p0 = new ChessPiece(ChessPiece.STRETCH, ChessPiece.STRETCH);

	layout.add(new Button("Button1"), p0, 0, 0);
	layout.add(new Button("Button2"), p0, 1, 0);
	layout.add(new Button("Button3"), p0, 2, 0);
	layout.add(new Button("Button4"), p0, 3, 0);
	
	layout.add(new Button("Button5"), p0, 0, 1, 3, 0);
	layout.add(new Button("Button6"), p0, 0, 2, 2, 0);
	layout.add(new Button("Button7"), p0, 3, 2);
	
	layout.add(new Button("Button8"), p0, 0, 3, 0, 1);
	layout.add(new Button("Button9"), p0, 1, 3, 2, 0);
	layout.add(new Button("Button10"), p0, 1, 4, 2, 0);
    }
}

