title: Difference between setContentPane(), doLayout() & setLayout() in a JFrame java
body: <p>Can someone explain to me the following because I'm confused which to use &amp; when: <strong>setContentPane()</strong>, <strong>doLayout()</strong> &amp; <strong>setLayout()</strong> in a JFrame java.</p>
  
  <p>Another query: Am I correct if I say that when using JFrame &amp; other swing containers other than JPanel there is no need to set/create a content Pane manually but in others I'm required to set it manually ?</p>
  
  <p>Thanks in advance</p>