title: How do i stop a button from taking up an entire panel?
body: <p>I am trying to add some buttons to the bottom of my GUI, but whenever I add the buttons to the panel, it takes up literally the entire panel. i.e.</p>
  
  <pre><code>JPanel PanelForButtons = new JPanel(new BorderLayout());
  JPanel lowPanel = new JPanel();
  lowPanel.setLayout(new BorderLayout());
  lowPanel.add(PanelForButtons);
  mainPanel.add(lowPanel, BorderLayout.SOUTH);
  GUI.add(mainPanel);
  GUI.setVisible(true);
  </code></pre>
  
  <p>However, one button then takes up the entire PanelForButtons. How do i stop this from happening? thanks</p>