title: Java JTextField wont show
body: <p>I'm creating some GUI and I have made this JDialog where I'm trying to create a template for name, phone No., and age.
  My problem is that when you push the button you call this method:</p>
  
  <pre><code>public void createKunde(){
          JDialog addDialog = new JDialog(frame);
          JPanel addContentPane =(JPanel) addDialog.getContentPane();
          addContentPane.setBorder(new EmptyBorder(12,12,12,12));
  
          addContentPane.setLayout(new BorderLayout(6,6));
  
          addDialog.setTitle("Opret Kunde");
          addDialog.setSize(800, 400);
          addDialog.setLocationRelativeTo(frame);
          addDialog.setModal(true);
          addDialog.setVisible(true);
  
          JPanel addContent = new JPanel();
          addContent.setLayout(new GridLayout(4,4));
  
          JTextField addName = new JTextField(50);
          addContent.add(addName);
  
          JTextField addAge = new JTextField(50);
          addContent.add(addAge);
  
          JTextField addPhone = new JTextField(50);
          addContent.add(addPhone);
  
  
          addContentPane.add(addContent, BorderLayout.WEST);
          addDialog.add(addContentPane);
      }
  </code></pre>
  
  <p>I Just can't get the TextFields to be shown in my JDialog. I can't see where the problem should be?</p>