title: How to disable all components in a JPanel
body: <p>In my JPanel I have many components, including other JPanels, JLabels, JTextAreas, and JButtons. Becuase I want to implement a tutorial mode where another window appears and everything in my main JPanel is disabled as the new window explains each 'feature' one by one... I want a to know how to disable all the components that are inside my origiinal JPanel. I know you can use:</p>
  
  <pre><code>component.setEnabled(false);
  </code></pre>
  
  <p>But I don't want to write it for each component in my JPanel. I would like to know if it's possible to disable ALL components within my JPanel with a for loop or something?</p>
  
  <p>Note: There are also component in nested JPanels, like the order would be</p>
  
  <p>Main JPanel ---> Nested JPanel ---> Component </p>
  
  <p>I also want the Final components to also be disabled...</p>
  
  <p>Thanks! All help is appreciated!</p>