import Graphics; import Graphics2D; import GUI; // Create graphics resource int graphicsID = newGraphics( ); // Create a renderer int rendererID = newGraphics2DRenderer( 800, 600, graphicsID ); // Create a window (800x600) titled "Hello, 2DCG!" int windowID = newWindow( 0, 0, 800, 600, " Hello , 2DCG ! " ); // Create an image label to show the graphics resource int labelID = newImageLabel( 0, 0, 800, 600, graphicsID ); // Mount the image label onto the window mountComponent( labelID, windowID ); // Paint the GUI components paintComponent( labelID ); paintComponent( windowID );