title: Adding labels to the next line of a BoxLayout
body: <p>I have a box layout that has a JLabel and a button next to it, as such:</p>
  
  <pre><code>    JFrame frame = new JFrame();
      JPanel panel = new JPanel();
  
      panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));
      panel.add(new JLabel("Reference  "));
      panel.add(new JButton("HI"));
  
      frame.add(panel);
      frame.setSize(500,300);
      frame.setVisible(true);    
  </code></pre>
  
  <p>This correctly presents a label called reference and a button right next to it. But if I want to present the same thing right below it (a new label, and another button), how would I do that?</p>
  
  <p>Because simply creating another panel, and emulating what I did before, doesn't seem to work.</p>
  
  <p>I.e</p>
  
  <pre><code>JPanel newPanel = new JPanel();
  newPanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));
  </code></pre>
  
  <p>Or using HTML in a new label like </p>
  
  <pre><code>JLabel s = new JLabel("&lt;html&gt; &lt;br&gt;newLaberl &lt;/html&gt;");
  </code></pre>
  
  <p>adding this to the panel still would print it on the same line, after the button, not the next, any ideas?</p>