title: FlowLayout add under previous components
body: <p>I'm trying to add somes components to a <code>JPanel</code> in <code>flowLayout</code>.    </p>
  
  <pre><code>JPanel panelPrincipal = new JPanel();
  principale.getContentPane().add(panelPrincipal, BorderLayout.CENTER);
  panelPrincipal.setLayout(new BorderLayout(0, 0));
  
  JPanel panelDynamique = new JPanel();
  JScrollPane jScrollPane = new JScrollPane(panelDynamique);
  panelPrincipal.add(jScrollPane, BorderLayout.CENTER);
  
  if(this.getNbAppFor(champs.get(6)) &gt; 0) {
      JLabel lblMAJ = new JLabel(champs.get(6));
      panelDynamique.add(lblMAJ);
      panelDynamique.add(new JSeparator());
  
      JPanel panelMAJ = new JPanel();
      panelMAJ.setLayout(new GridLayout(this.getNbAppFor(champs.get(6))/2, 2));
      panelDynamique.add(panelMAJ);
  }
  
  if(this.getNbAppFor(champs.get(7)) &gt; 0) {
      JLabel lblDispo = new JLabel(champs.get(7));
      panelDynamique.add(new JSeparator());
  
      JPanel panelDispo = new JPanel();
      panelDispo.setLayout(new GridLayout(this.getNbAppFor(champs.get(7))/2, 2));
      panelDynamique.add(panelDispo);
  }
  </code></pre>
  
  <p>It's the core build, but it doesn't look how I expected.</p>
  
  <p>I made an illustration of what I'm trying to do:</p>
  
  <p><a href="https://i.stack.imgur.com/FMg37.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FMg37.png" alt="Result Expected"></a></p>
  
  <p>How can I add a component to a <code>FlowLayout</code> in a next "row" under the previous component? And how can I make my separators fill the width of my <code>Container</code>?</p>