import jcontrol.ui.vole.Button;
import jcontrol.ui.vole.Frame;
import jcontrol.ui.vole.Label;

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

  Button b1, b2;
  Label l;

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

    // add the components to the frame
    this.add(l);
    this.add(b1);
    this.add(b2);

    // make the frame visible
    show();
  }

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