title: How to use Java Swing layout manager to make this GUI?
body: <p><a href="https://i.stack.imgur.com/OJKYZ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OJKYZ.gif" alt="Layout"></a></p>
  
  <p>I am trying to figure out what layouts should be used on the JFrame to get this layout accomplished. I am trying to code the GUI rather than use visual GUI-making tools. So far I was only able to get it to look like this:
  <a href="https://i.stack.imgur.com/dKjVO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dKjVO.png" alt="enter image description here"></a></p>
  
  <p>This is the source code for the GUI above: <a href="http://pastebin.com/s06pareG" rel="nofollow noreferrer">http://pastebin.com/s06pareG</a></p>
  
  <pre><code>    /**
       * Initialize the contents of the frame.
       */
      private void initialize() {
              frame = new JFrame();
              frame.setBounds(100, 100, 450, 300);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //frame.getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
  
              JPanel upPanel = new JPanel();
              upPanel.setLayout(new GridLayout(2,3));
  
              JLabel data = new JLabel("Data Source Name:");
              upPanel.add(data);
              JTextField dataText = new JTextField();
              upPanel.add(dataText);
              JLabel desc = new JLabel("Description:");
              upPanel.add(desc);
              JTextField descText = new JTextField();
              upPanel.add(descText);
  
              JPanel midPanel = new JPanel();
              midPanel.setBorder(new TitledBorder(null, "Database", TitledBorder.LEADING, TitledBorder.TOP, null, null));
              JLabel dbTitle = new JLabel("Database");
              JButton select = new JButton("Select...");
              JButton create = new JButton("Create...");
              JButton repair = new JButton("Repair...");
              JButton compact = new JButton("Compact...");
  
              JPanel eastPanel = new JPanel();
              eastPanel.setLayout(new GridLayout(4,1));
  
              JButton ok = new JButton("OK");
              JButton cancel = new JButton("Cancel");
              JButton help = new JButton("Help");
              JButton advanced = new JButton("Advanced...");
              eastPanel.add(ok); eastPanel.add(cancel); eastPanel.add(help); eastPanel.add(advanced);
  
              frame.getContentPane().add(upPanel, BorderLayout.NORTH);
              frame.getContentPane().add(midPanel, BorderLayout.WEST);
              midPanel.setLayout(new BorderLayout(0, 0));
              midPanel.add(dbTitle);
              midPanel.add(select);
              midPanel.add(create);
              midPanel.add(repair);
              midPanel.add(compact);
              frame.getContentPane().add(eastPanel, BorderLayout.EAST);
  
      }
  </code></pre>
  
  <p>I was thinking about making the JFrame absolute layout and then creating 4 JPanels with GridLayout. Also, I'm having trouble making the "Database:" label sit on its own row and placing the JButtons below it. What types of layouts and customizing functions should I look into to accomplish this look?</p>