title: JPanel Organizing Buttons/Images/Etc without GridLayout
body: <p>So I want to organize my buttons and image without using Gridlayout because it looks horrible.</p>
  
  <p>This is what I currently have: </p>
  
  <p><img src="https://i.stack.imgur.com/zBnRs.jpg" alt="enter image description here"></p>
  
  <p>This is how I want it to look: </p>
  
  <p><img src="https://i.stack.imgur.com/s8mnW.jpg" alt="enter image description here"></p>
  
  <p>and here is the code for the panel, any ideas?:</p>
  
  <pre><code>package hi.low;
  
  import java.awt.*;
  import java.awt.event.*;
  import javax.swing.*;
  
  
  public class Card_panel extends JPanel implements ActionListener
  {
     private final int WIDTH = 400, HEIGHT = 200;
  
     private static String[] imageList =  { 
                                              "images/ac.png"
                                          };
     private static int imageNum = -1;
  
     JButton higher;
     JButton lower;
  
     public Card_panel()
     {
  
          setPreferredSize(new Dimension(WIDTH, HEIGHT));
          setBackground (Color.green.darker().darker());
  
          ImageIcon image = new ImageIcon(imageList[0]);
          JLabel label = new JLabel("", image, JLabel.CENTER);
          add( label, BorderLayout.CENTER );
  
          JButton higher = new JButton("Higher");
          higher.setActionCommand("higher");
          higher.addActionListener (this);
          add( higher, BorderLayout.SOUTH );
  
          JButton lower = new JButton("Lower");
          lower.setActionCommand("lower");
          lower.addActionListener (this);
          add( lower, BorderLayout.SOUTH );
  
  
     }
  
      @Override
      public void actionPerformed(ActionEvent e)
      {
          String Action;
          Action = e.getActionCommand ();
  
          if (Action.equals ("higher"))
          {
              System.out.println("User chose higher!");
          }
  
          if (Action.equals ("lower"))
          {
              System.out.println("User chose lower!");
          }
  
      }
  
  }
  </code></pre>
  
  <p>Thank you!</p>