title: Set JWindow Background Image
body: <p>Hey All<br>
  I want to set a Background for my JWindow. I used setIconImage method in JWindow. but it's not working</p>
  
  <p>How knows what the problem is?</p>
  
  <pre><code>    public MainMenu() throws Exception {
      try {
          bg = ImageIO.read(new File("pics" + File.separator
                  + "mainMenuBackground.jpg"));
  
          content = new JWindow(this);
          content.setIconImage(bg);
          gs.setFullScreenWindow(content);
          content.repaint();
  
          this.setDefaultCloseOperation(EXIT_ON_CLOSE);
          this.repaint();
      } catch (Exception e) {
          throw new Exception("Some files are unavailable");
      }
  }
  </code></pre>
  
  <p>This lines of code makes a Full-screen window with no background image. why?<br>
  How can i fix it?</p>