title: Java - How to add line breaks in swings
body: <p>I am adding a button to my minigame, but I do not know how to make a <em>line break</em>. I want one space in between the button and the text, and here's the code:</p>
  
  <pre><code>JPanel panel1 = new JPanel();
  JLabel label1 = new JLabel("Welcome to the Wall Game!");
  JLabel label2 = new JLabel("Click the button to read the instructions!");
  JLabel space = new JLabel("");
  JButton button1 = new JButton("Start");
  button1.setText("Start!");
  
  label1.setFont(font1); 
  panel1.add(label1); //adds in all the labels to panels
  panel1.add(label2);
  panel1.add(space);
  panel1.add(button1);
  this.add(panel1); //adds the panel
  </code></pre>
  
  <p>What it shows in the <strong>Welcome message</strong> in a separate line, but for some reason the button is beside <code>label2</code> Does someone know how?</p>
  
  <p>By the way, you need <code>import javax.swing.*;</code> at the start if you didn't already know.
  Thanks to anyone who knows.</p>