*/
public class OSXorWindowsFactory {
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();
}