title: How do I get these two buttons on the bottom of my program
body: <p>Write a program that displays two buttons labeled “Green” and “Orange”. </p>
  
  <p>If the user clicks on the green button, the background of the window changes to green. If the user clicks on the orange button, the background of the window changes to Orange. </p>
  
  <p>Create a <code>JFrame</code> for this GUI. The GUI employs the default layout manager. A <code>JPanel</code> is needed. </p>
  
  <p>Place the two buttons inside the panel and add the panel to the south region of the border layout. </p>
  
  <p>Notice the text in the title bar. The green button should have white text and a green background. The orange button should have black text with an orange background. </p>
  
  <p>Below is what I have so far, it doesn't seem to work.</p>
  
  <pre><code>public class LabAssign91 extends JFrame implements ActionListener{
  private JPanel loc1Panel;
  private JButton greenButton, orangeButton;
  
  public LabAssign91()
  {
      super("Colored Buttons");
      setLayout(new GridLayout(2, 2));
      setSize(300,250);
      setVisible(true);
      this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      add(loc1Panel);
      loc1Panel = new JPanel();
      add(loc1Panel, BorderLayout.SOUTH);
  
  
      greenButton = new JButton("Green");
      greenButton.addActionListener(this);
      loc1Panel.add(greenButton, BorderLayout.WEST);
      greenButton.setBackground(Color.green);;
      orangeButton = new JButton("Orange");
      orangeButton.addActionListener(this);
      loc1Panel.add(orangeButton, BorderLayout.EAST);
      orangeButton.setBackground(Color.orange);
  
  }
  
  public static void main(String[] args) {
      LabAssign91 app = new LabAssign91();
  
  }
  
  public void actionPerformed(ActionEvent e) {
      throw new UnsupportedOperationException("Not supported yet.");
  }
  </code></pre>
  
  <p>}</p>