title: How to make a “do not ask me again” dialog pop-up box with java?
body: <p>In one part of my program I use a <code>JOptionPane</code> to ask the user if they are sure of what he will do. But I do not want to bore the user asking that every time you try so I like to use the function of some dialog boxes in android that come with the "Do not ask again", but do not know how to implement that in my program, someone here you could help me?
  (Should have a Spanish StackOverflow)
  This is my code</p>
  
  <pre><code>if (jCheckBox2.isSelected() &amp;&amp; jCheckBox1.isSelected()){
          JOptionPane.showConfirmDialog(null, "This action can cause problems, want to do it?");
          //here must be something to never ask again this 
  
      }
  </code></pre>