title: JButtons not appearing on JPanel
body: <p>I am working on a menu that should come up with 2 buttons, "resume" and "Exit to main menu". The problem is that the JPanel is showing without any problems but the JButtons are not there, even though I have added them. The following part of code is the handling of the graphical side of the menu.</p>
  
  <pre><code>if(secMenuFlag){
          JPanel menu = new JPanel();
          JButton resume = new JButton("Resume"), exit = new JButton("Exit to Main Menu");
          menu.setLayout(null);
  
          menu.setLocation((frame.getWidth() - menuSize[0]) / 2, (frame.getHeight() - menuSize[1]) / 2);
          menu.setSize(menuSize[0], menuSize[1]);
          menu.setBackground(new Color(0, 0, 0));
  
          resume.addActionListener(this);
          resume.setFont(new Font("Sans-serif", Font.BOLD, 18));
          resume.setBackground(Color.white);
          resume.setLocation(100, 100);
  
          exit.addActionListener(this);
          exit.setFont(new Font("Sans-serif", Font.BOLD, 18));
          exit.setBackground(Color.white);
          exit.setLocation(200, 100);
  
          menu.add(resume);
          menu.add(exit);
          super.add(menu, 0);
  
      }
  </code></pre>