title: Java GUI repaint() problem?
body: <p>I have a JFrame. This JFrame contains a JButton. I click the JButton and 10 JTextFields are created.</p>
  
  <p>the problem:
  I cannot see them until "I force a repaint()" by resizing the window. Only then do I see the JTextFields created.</p>
  
  <p>CODE:</p>
  
  <pre><code>JPanel points = new JPanel();
  
  //Creating the JTextFields:
  for (int i=0; i&lt;10; i++) {
      JTextField textField = new JTextField();
      points.add(textField);
  }
  
  repaint();
  this.repaint();
  super.repaint();
  points.repaint();
  </code></pre>
  
  <hr>
  
  <p>THANK YOU - after the for loop, I just called points.validate() and it worked...</p>