title: How to use Java AWT setBackground
body: <p>This is some code to create a basic java window:</p>
  
  <pre><code>JPanel pane = new JPanel();
  gui(String title){
      super(title);
      setBounds(100,100,500,500);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      Container con = this.getContentPane();
  *   con.setBackground(new Color(0,0,0));
      con.add(pane);
      setVisible(true);
  }
  </code></pre>
  
  <p>The line marked with a star (*) is meant to make the window's background color black (0,0,0). However, that line seems to do nothing. (I have tried using <code>pane.setBackground</code> here, but that made no diffference.)</p>
  
  <p>How do I change the background color?</p>