title: How to get all elements inside a JFrame?
body: <p>I have this code to get all the elements I need and do some processing. The problem is I need to specify every panel I have to get the elements inside it.</p>
  
  <pre><code>for (Component c : panCrawling.getComponents()) {
      //processing
  }
  for (Component c : panFile.getComponents()) {
      //processing
  }
  for (Component c : panThread.getComponents()) {
      //processing
  }
  for (Component c : panLog.getComponents()) {
      //processing
  }
  //continue to all panels
  </code></pre>
  
  <p>I want to do something like this and get all the elements without need specefy all the panels names. How I do this. The code below don't get all the elements.</p>
  
  <pre><code>for (Component c : this.getComponents()) {
      //processing
  }
  </code></pre>