title: How to change the text of yes/no buttons in JavaFX 8 Alert dialogs
body: <p>I have this code snippet:</p>
  
  <pre><code>Alert alert = 
          new Alert(AlertType.WARNING, 
              "The format for dates is year.month.day. " +
              "For example, today is " + todayToString() + ".",
               ButtonType.OK, 
               ButtonType.CANCEL);
  alert.setTitle("Date format warning");
  Optional&lt;ButtonType&gt; result = alert.showAndWait();
  
  if (result.get() == ButtonType.OK) {
      formatGotIt = true;
  }
  </code></pre>
  
  <p>Above, I request two buttons titled "Yes" and "No." However, I wish to change them both.</p>