import java.awt.*; import javax.swing.*; /** * The control panel for commands that control a single square */ public class ControlSingle extends ControlPanel { //*1 Inherit from ControlPanel ControlSingle (Model model) { add (new ButtonLeft (model)); //*2 Just instantiate and add add (new ButtonRight (model)); //*2 add (new ButtonBigger (model)); //*2 add (new ButtonSmaller (model)); //*2 } }