import jcontrol.ui.wombat.Button;
import jcontrol.ui.wombat.Container;
import jcontrol.ui.wombat.Frame;
import jcontrol.ui.wombat.Label;

/**
 * <p>This example demonstrates how to implement JControl
 * applications with a graphical user interface
 * using the GUI framework JControl/Wombat.</p>
 *
 * <p>(C) DOMOLOGIC Home Automation GmbH 2003-2005</p>
 */
public class WombatExampleBase extends Frame {

	Button b1, b2;
	Label l;

	/**
	 * Create and show a label and two buttons.
	 */
	public WombatExampleBase() {
		// create some components
		l = new Label("Welcome to Wombat!", 0, 5, 128, 10, Label.STYLE_ALIGN_CENTER);
		b1 = new Button("Button 1", 8,20,50,12);
		b2 = new Button("Button 2", 62,20,50,12);

		// creates a new componaint container
		Container c = new Container();

		// add the components to the container
		c.add(l);
		c.add(b1);
		c.add(b2);
		
		// add container to this frame
		setContent(c);
		
		// make the frame visible
		setVisible(true);
	}

	public static void main(String[] args) {
		new WombatExampleBase();
	}
}