title: How is the X button represented in a JOptionPane in java?
body: <p>How is the X button represented in a JOptionPane?</p>
  
  <p>when my program starts, a JOptionPane comes up and straight after that a JFrame comes up. What is want is, when the user presses the X button, for the system to exist and don't show any JFrame, instead close both the JOptionPane and don't show the JFrame.</p>
  
  <p>so something like this but I don't know how to represent the X button;</p>
  
  <pre><code>if (reply == JOptionPane.NO_OPTION){
          System.exit(ABORT);
          }
  </code></pre>