Package abstraction.components

Examples of abstraction.components.Button


  public static void main(String[] args) {

    GUIFactory aFactory = GUIFactoryChoice.getFactory();
    System.out.println("Using factory " + aFactory
        + " to construct aButton");
    Button aButton = aFactory.createButton();
    aButton.setCaption("Push a");
    aButton.paint();

    GUIFactory bFactory = GUIFactoryChoice.getFactory();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bButton");
    Button bButton = bFactory.createButton();
    bButton.setCaption("Push b");
    bButton.paint();

    GUIFactory cFactory = GUIFactoryChoice.getFactory();
    System.out.println("\nUsing factory " + cFactory
        + " to construct cButton");
    Button cButton = cFactory.createButton();
    cButton.setCaption("Push c");
    cButton.paint();
   
   
  }
View Full Code Here


  public static void main(String[] args) {

    GUIFactory3 aFactory = GUIFactoryChoice3.getFactory();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aButton");
    Button aButton = aFactory.createButton();
    aButton.setCaption("Push a");
    aButton.paint();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aMenu");
    Menu aMenu = aFactory.createMenu();
    aMenu.setCaption("Menu a");
    aMenu.display();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aSlider");
    Slider aSlider = aFactory.createSlider();
    aSlider.setCaption("Slider a");
    aSlider.slide();

    GUIFactory3 bFactory = GUIFactoryChoice3.getFactory();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bButton");
    Button bButton = bFactory.createButton();
    bButton.setCaption("Push b");
    bButton.paint();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bMenu");
    Menu bMenu = bFactory.createMenu();
    bMenu.setCaption("Menu b");
    bMenu.display();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aSlider");
    Slider bSlider = bFactory.createSlider();
    bSlider.setCaption("Slider a");
    bSlider.slide();

    GUIFactory3 cFactory = GUIFactoryChoice3.getFactory();
    System.out.println("\nUsing factory " + cFactory
        + " to construct bButton");
    Button cButton = cFactory.createButton();
    cButton.setCaption("Push b");
    cButton.paint();
    System.out.println("\nUsing factory " + cFactory
        + " to construct bMenu");
    Menu cMenu = cFactory.createMenu();
    cMenu.setCaption("Menu b");
    cMenu.display();
View Full Code Here

    public static void main(String[] args){
     
        GUIFactory aFactory = GUIFactory.getFactory();
        System.out.println("Using factory "+ aFactory+" to construct aButton");
        Button aButton = aFactory.createButton();
        aButton.setCaption("Push a");
        aButton.paint();

        GUIFactory bFactory = GUIFactory.getFactory();
        System.out.println("Using factory "+ bFactory+" to construct bButton");
        Button bButton = bFactory.createButton();
        bButton.setCaption("Push b");
        bButton.paint();
    }
View Full Code Here

  public static void main(String[] args) {

    GUIFactory2 aFactory = GUIFactoryChoice2.getFactory();
    System.out.println("Using factory " + aFactory
        + " to construct aButton");
    Button aButton = aFactory.createButton();
    aButton.setCaption("Push a");
    aButton.paint();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aMenu");
    Menu aMenu = aFactory.createMenu();
    aMenu.setCaption("Menu a");
    aMenu.display();

    GUIFactory2 bFactory = GUIFactoryChoice2.getFactory();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bButton");
    Button bButton = bFactory.createButton();
    bButton.setCaption("Push b");
    bButton.paint();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bMenu");
    Menu bMenu = bFactory.createMenu();
    bMenu.setCaption("Menu b");
    bMenu.display();
   
    GUIFactory3 cFactory = GUIFactoryChoice3.getFactory();
    System.out.println("\nUsing factory " + cFactory
        + " to construct bButton");
    Button cButton = cFactory.createButton();
    cButton.setCaption("Push b");
    cButton.paint();
    System.out.println("\nUsing factory " + cFactory
        + " to construct bMenu");
    Menu cMenu = cFactory.createMenu();
    cMenu.setCaption("Menu b");
    cMenu.display();
View Full Code Here

TOP

Related Classes of abstraction.components.Button

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.