You will first write a helper method to construct and configure the control. Then you declare an instance variable for it, using the helper for initialization. Finally, you add a line of code to the createControlPanel() helper to add the control to the control panel.
JComboBox methodControl = createMethodControl();It is important that this variable declaration, and all others that you add later, be placed before the declaration for the declaration for the draw panel.
That's all there is to this step. When you run your applet, it should look like the following demonstration applet.