title: problems with the 2 options joption
body: <p>I'm having problems with these 2 different options, the first one opens up just fine to a browser for future use, but the second option opens the browser and not the dialogue in which i'd like to have open. Also can someone tell me how to make the cancel button cancel out and not open the browser, thanks in advance here's the code.</p>
  
  <pre><code>    public static void CheckForUpdates(){
  Object[] possibleValues = { "Check for Updates", "Check for version ID" };
  Object selectedValue = JOptionPane.showInputDialog(null,
  "What would you like to do?", "",
  JOptionPane.INFORMATION_MESSAGE, null,
  possibleValues, possibleValues[0]);
  if ( JOptionPane.YES_NO_OPTION == JOptionPane.YES_OPTION) {
         try {
              Desktop.getDesktop().browse(new URI("www.google.ca"));
          } catch (IOException | URISyntaxException e) {
      }
      if ( JOptionPane.YES_NO_OPTION == JOptionPane.NO_OPTION){
          JOptionPane.showMessageDialog(frame, "version ID: V1");
      }
  }
      }
  </code></pre>