title: JFrame does not show anything
body: <p>I am trying to make a RPG game in a GUI and it's not going so well.
  Before I added the JButton everything worked and displayed in the window as it should. I'm not sure what happened after I added the JButton.
  There is supposed to be the title displayed in the grey area and the button in the blue area. Ive tried running normally and running with debugger, none of the text or button shows up.
  I am following the tutorial <a href="https://www.youtube.com/watch?v=RcvABhflOkI" rel="nofollow noreferrer">here</a> step-by-step and I dont see anything out of place. (I know that i've changed the variable names).</p>
  
  <p>What have I done wrong here? Do I need to add anything extra?</p>
  
  <pre><code>import javax.swing.*;
  import java.awt.*;
  
  public class Game {
  
      JFrame window;
      Container c;
      JPanel titlePanel;
      JPanel startButtonPanel;
      JLabel titleLabel;
      JButton startButton;
      Font titleFont = new Font("Cooper Black", Font.PLAIN, 90);
      Font buttonFont = new Font("Cooper Black", Font.PLAIN, 32);
  
      public static void main(String[] args) {
          new Game();
      }
  
      public Game() {
  
          //Main Window
          window = new JFrame();
          window.setSize(800, 600);
          window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          window.getContentPane().setBackground(Color.BLACK);
          window.setLayout(null);
          window.setVisible(true);
          c = window.getContentPane();
  
          //Title Panel
          titlePanel = new JPanel();
          titlePanel.setBounds(100, 100, 600, 150);
          titlePanel.setBackground(Color.GRAY);
  
          titleLabel = new JLabel("TEXT RPG");
          titleLabel.setForeground(Color.WHITE);
          titleLabel.setFont(titleFont);
  
          //Start Button Panel
          startButtonPanel = new JPanel();
          startButtonPanel.setBounds(300, 400, 200, 100 );
          startButtonPanel.setBackground(Color.BLUE);
  
          //Start Button
          startButton = new JButton("START");
          startButton.setBackground(Color.BLACK);
          startButton.setForeground(Color.WHITE);
          startButton.setFont(buttonFont);
  
  
          //Add Elements to Window
          titlePanel.add(titleLabel);
          startButtonPanel.add(startButton);
  
          //Add Elements to Container
          c.add(titlePanel);
          c.add(startButtonPanel);
  
      }
  }
  </code></pre>