title: JFrame not adding JPanel in Eclipse Neon
body: <pre><code>public class DrawablePanel extends JPanel {
  
      public static void main(String[] args) {
          JFrame frame = new JFrame();
          
          frame.setSize(500,500);
          frame.setLayout(null);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.add(new DrawablePanel());
          frame.setVisible(true);
      }
  
      public DrawablePanel(){
          setBackground(Color.black);
       }
  
      public Color pickColor(){
          Random rand = new Random();
          int a = rand.nextInt(255)+0;
          int b = rand.nextInt(255)+0;
          int c = rand.nextInt(255)+0;
          Color color = new Color(a,b,c);
          return color;
      }
  }
  </code></pre>
  <p>I have no idea why the <code>JPanel</code> is not showing up on the <code>JFrame</code>.
  <a href="https://i.stack.imgur.com/7SWwC.png" rel="nofollow noreferrer">I have attached an image of what it looks like when I run the code.</a></p>