@@ -0,0 +1,1499 @@
+/*%0A%09Programmer: Kristoffer Larson%0A%09Date: January 29, 2014%0A%0A%09Description: Loads in an image saved in the same folder%0A      and places it in the background of the frame, to be %0A      displayed. I tested this with a picture of a young%0A      Morgan Freeman.%0A*/%0A%0Aimport java.awt.Graphics;%0Aimport java.awt.image.BufferedImage;%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport javax.imageio.ImageIO;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JPanel;%0A%0Apublic class GUI_Frame extends JPanel %7B%0A%09 %0A   private JFrame frame;%0A   private JPanel panel;%0A   private BufferedImage img;%0A   private final String IMAGE = %22MorganFreeman.jpg%22; //Image file name%0A%0A   public GUI_Frame()%7B%0A       frame = new JFrame();%0A       frame.setSize(400,400);%0A       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        %0A       loadImage();%0A       frame.getContentPane().add(new GUI_Frame(img));%0A       frame.setVisible(true);%0A   %7D%0A   %0A   public GUI_Frame(BufferedImage img) %7B%0A      this.img = img;%0A   %7D%0A   %0A   @Override%0A   protected void paintComponent(Graphics g) %7B //Paint the image on the frame%0A      super.paintComponent(g);%0A      if (img != null) %7B%0A         g.drawImage(img, 0, 0, this);%0A      %7D%0A   %7D%0A   %0A   public void loadImage() %7B //Load image file in%0A      try %7B%0A         img = ImageIO.read(new File(IMAGE));%0A      %7D catch (IOException e) %7B%0A         e.printStackTrace();%0A         System.exit(-1);%0A      %7D %0A   %7D%0A   %0A   public static void main(String%5B%5D args) %7B%0A      GUI_Frame test = new GUI_Frame();%0A   %7D%0A%7D%0A

Create GUI_Frame.java