The init method is used to set up the GUI add(new Button("A button")); // no action yet
add(new Button("A button")); // no action yet