title: Difference between content pane and layout in swing?
body: <p>Anyone explain to me the difference between content pane and layout with by example. Give code example where exactly need of content pane (or) layout.</p>
  
  <p>What is the difference between these, and in what circumstances should you use one rather than the others?</p>