import java.awt.*; import javax.swing.*; /* Class that will create a Drawing (using the class Drawing), * add it to a pane, and show all in a frame. */ class DrawingInWindow{ public static void main(String[] args){ JFrame frame = new JFrame("My shapes on screen"); Container pane = frame.getContentPane(); pane.add(new Drawing()); frame.pack(); frame.show(); } }