title: Set Default Close Operation for JDialog
body: <p>I have JDialog class</p>
  
  <pre><code>public class NewCCPackageJDialog extends javax.swing.JDialog {
  public NewCCPackageJDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
  </code></pre>
  
  <p>Are there default close button in JDialog ,If three is how can I show it.</p>