import java.awt.*; import javax.swing.*; /** * The control panel for global commands */ public class ControlGlobal extends ControlPanel { ControlGlobal (Model model) { // Create our buttons by instantiating their OBJECTS // turns out we don't need to remember them, // just to add() them to our panel layout // Nor do we need to save model, just pass it in add (new ButtonX (model)); } }