title: What is the difference between JFrame.getContentPane() and JFrame.getRootPane()?
body: <p>What is the difference between Java frame functions <code>getContentPane()</code> and <code>getRootPane()</code>?
  Also what wil happen when we set a JButton as Default.</p>