title: Change Button text in JOptionPane showConfirmDialog
body: <p>I have a JPanel within JOptionPane.showConfirmDialog. I would like to change the Yes/No/Cancel buttons to custom values but unsure how to.</p>
  
  <pre><code>    private void displayGUI(String msg) {
      UIManager.put("OptionPane.okButtonText", "SNOOZE");
      final int selectedVal = JOptionPane.showConfirmDialog(null, getPanel(msg));
      if (selectedVal == JOptionPane.OK_OPTION){
          System.out.println("Ok button has been pressed.");
      }
  }
  
  private JPanel getPanel(String msg) {
      JPanel panel = new JPanel();
      JLabel label = new JLabel (msg, JLabel.CENTER);
      label.setFont (label.getFont ().deriveFont (32.0f));
      panel.setPreferredSize(new Dimension(500,500));
      panel.add(label);
  
      return panel;
  }
  </code></pre>
  
  <p>I tried using the UIManager but was unsuccessful. </p>