title: Adding multiple panels to a JFrame
body: <p>I know some java, but I'm new to doing any type of GUI development. Most of the things I've done have been small programs run through a terminal.</p>
  
  <p>In either case, as I try to get my feet wet, I found myself stuck with the following code:</p>
  
  <pre><code>public class MyGui {
  
     public static void main(String[] args) {
        JFrame frame = new JFrame("My Frame");
        JPanel leftPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
        JPanel centerPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
  
        JTextArea userField = new JTextArea("User:");
        userField.setEditable(false);
  
        JTextArea user = new JTextArea("myuser");
        user.setEditable(true);
  
        leftPanel.add(userField);
        centerPanel.add(user);
  
        frame.getContentPane().add(leftPanel);
        frame.getContentPane().add(centerPanel);
        frame.setVisible(true);
        frame.setSize(500, 500);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
  </code></pre>
  
  <p>I'd basically like a table window with fields on the left and their values on the right.  How can this be done?</p>
  
  <p>My current output is just <code>myuser</code> at the center of my window.</p>