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();