title: Does Container.getComponents() return references to the original components?
body: <p>I'm using Container.getComponents() to get an array of Components stored inside the Container. I'm then modifying one of these Components (which happens to be a JLabel), but the changes are not showing on the GUI.</p>
  
  <p>So I'm thinking maybe the method creates new instances of each Component which prevents me from making changes to the original component?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>Component[] components = source.getComponents();
  if(components.length &gt;= 2) {
      if(components[1] instanceof JLabel) {
          JLabel htmlArea = (JLabel) components[1];
          htmlArea.setText("&lt;html&gt;new changes here&lt;/html&gt;");
          htmlArea.revalidate();
      }
  }
  </code></pre>