title: Java Swing can't add multiple panels to panel
body: <p>I'm trying to add 2 panels to one panel. Now the problem is, when I add the first or the second one alone, I can see them in the panel.
  But when I add both off them (put //add(panel2, BorderLayout.SOUTH); out of comment) I don't see any of them. The Weblabel("Test") is always showing.
  Now both panels have a onclick method and when you can't see them (if they are both added) the onclick still works if you click where the panels are supposed to be.</p>
  
  <p>I already tried other layoutmanagers but without succes. Does anyone know where this problem could be comming from? </p>
  
  <pre><code>setLayout(new BorderLayout());
  add(panel1,BorderLayout.NORTH);
  add(new WebLabel("Test"), BorderLayout.CENTER);
  //add(panel2,BorderLayout.SOUTH);
  </code></pre>
  
  <p>I initialize both panels in my constructor.</p>
  
  <pre><code>public MultipleFloorPlanEntityPanel(int xCoordinate, int yCoordinate,   FloorPlanEntityPanel panel1, FloorPlanEntityPanel panel2){
      this.xCoordinate = xCoordinate;
      this.yCoordinate = yCoordinate;
      this.panel1 = panel1;
      this.panel2 = panel2;
      layoutComponents();
  }
  </code></pre>
  
  <hr>
  
  <p><strong>Solved</strong>: reinitialized the extra panels and that worked :)</p>