FileDocCategorySizeDatePackage
CircleLayoutTest.javaAPI DocExample848Fri Jan 30 19:26:06 GMT 2004regress

CircleLayoutTest

public class CircleLayoutTest extends Object
Testbed for CircleLayout layout manager.
author
Ian Darwin, http://www.darwinsys.com/
version
$Id: CircleLayoutTest.java,v 1.7 2004/01/31 01:26:06 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] av)
"main program" method - construct and show

		final JFrame f = new JFrame("CircleLayout Demonstration");
		Container cp = f.getContentPane();
		cp.setLayout(new CircleLayout(true));
		cp.add(new JButton("One"));
		cp.add(new JButton("Two"));
		cp.add(new JButton("Three"));
		cp.add(new JButton("Four"));
		cp.add(new JButton("Five"));
		cp.add(new JButton("Six"));
		f.pack();
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setLocation(200, 200);
		f.setVisible(true);