title: How to call JOptionPane with only Yes/No options?
body: <p>Is it possible to call a confirmation dialog, that would have ONLY <code>YES</code> and <code>NO</code> options (without the CANCEL option)?</p>
  
  <pre><code>JOptionPane.showConfirmDialog(null, "Are you sure?")
  </code></pre>
  
  <p>Gives three options, but I need only two.</p>