title: Set layout with JPanels
body: <p>I haven't really worked with Swing at all in Java. I'm experimenting with it. I want to make a set layout that the size can't be changed. I've seen alot of things suggesting to use <code>Layout managers</code> to add multiple <code>JPanels</code> into a <code>JFrame</code>. </p>
  
  <p>However, all the tutorials I've seen involving layout managers say it allows for the user to resize the screen. The layout I want has a rectangle going along the left hand side, a  thin rectangle going along the bottom, and a third rectangle taking up the rest of the space. I attempting it using an Absolute layout but it just doesn't want to work for me.</p>
  
  <pre><code>import java.awt.Color;
  
  import javax.swing.JFrame;
  import javax.swing.JPanel;
  import javax.swing.SwingUtilities;
  
  
  public class Test extends JFrame {
  
      public Test() {
          JPanel rect1 = new JPanel();
          rect1.setBounds(101, 650, 900, 50);
          rect1.setBackground(Color.RED);
          getContentPane().add(rect1);
  
          JPanel rect2 = new JPanel();
          rect2.setBounds(0, 650, 100, 1000);
          rect2.setBackground(Color.BLUE);
          getContentPane().add(rect2);
  
          JPanel rect3 = new JPanel();
          rect3.setBounds(101, 700, 900, 950);
          rect3.setBackground(Color.GREEN);
          getContentPane().add(rect3);
  
         setTitle("TEST");
         setSize(1000, 700);
  
         setLocationRelativeTo(null);
         setDefaultCloseOperation(EXIT_ON_CLOSE);        
      }
  
  
      public static void main(String[] args) {
  
          SwingUtilities.invokeLater(new Runnable() {
              @Override
              public void run() {
                  Test ex = new Test();
                  ex.setVisible(true);
              }
          });
      }
  }
  </code></pre>
  
  <p>Can someone help me properly make three Jpanels in a Jframe in this layout (all with different colors)?</p>