title: Insert a new line for each field in Java GUI
body: <p>I am working on the GUI in Java. I could not figure out how can I insert a new line for each field. Can anybody help me with this problem? Here is my code:</p>
  
  <pre><code>public class InsertPanel extends JPanel{
      public InsertPanel() {
          setBackground(Color.yellow);
          setPreferredSize(new Dimension(540, 500));
  
          JLabel isbnLabel = new JLabel("ISBN: ");
          JTextField isbnTextFld = new JTextField(10);
  
          JLabel authorLabel = new JLabel("Author: ");
          JTextField authorTextFld = new JTextField(10);  
  
          JLabel titleLabel = new JLabel("Title: ");
          JTextField titleTextFld = new JTextField(10);
  
          JLabel priceLabel = new JLabel("Price: ");
          JTextField priceTextFld = new JTextField(10);
  
          JButton submitBtn = new JButton("Submit");
  
          JTextArea textArea = new JTextArea(10, 30);
  
          add(isbnLabel);
          add(isbnTextFld);
          add(authorLabel);
          add(authorTextFld);
          add(titleLabel);
          add(titleTextFld);
          add(priceLabel);
          add(priceTextFld);
          add(submitBtn);
          add(textArea, BorderLayout.CENTER);
      }
  }
  </code></pre>
  
  <p>Those fields in the output were on the same line. I want to them look like </p>
  
  <p>ISBN: </p>
  
  <p>Author:</p>
  
  <p>Title:</p>
  
  <p>Price:</p>
  
  <p>Submit</p>
  
  <p>TextArea:</p>
  
  <p>Thank you very much!</p>