title: What is the difference between a JFrame and a JDialog?
body: <p>What is the difference between a <code>JFrame</code> and a <code>JDialog</code>?</p>
  
  <p>Why can't we use <code>setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE);</code> for a JDialog?</p>