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