title: Java buttons not showing up on JFrame
body: <p>I am fairly new to java, and I am starting a sort of glossary program.
  At the start, I am trying to use a JFrame with buttons on.</p>
  
  <p>But only 1 button shows up when I run it.
  Also, I don't think I am positioning the buttons right.</p>
  
  <pre><code>         package glossary;
  
  import java.awt.BorderLayout;
  import javax.swing.JFrame;
  import java.awt.event.ActionListener;
  import java.awt.event.ActionEvent;
  import javax.swing.*;
  
  public class Glossary {
  
  
      public static void main(String[] args) {
  
           JFrame frame = new JFrame("Glossary");
           frame.setVisible(true);
           frame.setSize(400,200);
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
  
  
           JPanel panel1 = new JPanel();
           frame.add(panel1);
           JButton LookUpWord = new JButton("Look up word");
           panel1.add(LookUpWord, BorderLayout.NORTH);
  
           JPanel panel2 = new JPanel();
           frame.add(panel2);
           JButton SubmitNewWord = new JButton("Submit word");
           panel2.add(SubmitNewWord, BorderLayout.SOUTH);
  
            }
  
  }
  </code></pre>
  
  <p>Please tell me what I am doing horribly wrong!</p>