import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.util.*; public class ShowShapes { public static void main(String argv[]) throws IOException { JFrame frame = new JFrame(); HoldShapes shapes; shapes = new HoldShapes(); //------------ You write the code ---------------- // Prompt for the number of scoops then prompt for each color and call // shapes.addScoop(). You will finish addScoop() in HoldShapes - it should take one // argument that is the color to use. Note: see Hold.java for more comments. System.out.println("Thanks for ordering " + n + " scoops! Close the window when done."); frame.setSize(1000, 850); shapes.setSize(frame.getSize()); shapes.setPreferredSize(frame.getSize()); frame.add(shapes); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } }