import java.awt.*; import javax.swing.*; import javax.swing.JFrame; public class GraphicsExampleApp3 { public static void main(String args[]) { GraphicsExampleFrame3WithKeyboardInput f = new GraphicsExampleFrame3WithKeyboardInput(); f.setBackground(Color.black); f.setSize(500, 400); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setTitle("Graphics Example 3 by Mr. Hanley"); f.setVisible(true); } }