title: Java: Custom Buttons in showInputDialog
body: <p>How do you add custom text to the buttons of a JOptionPane.showInputDialog?</p>
  
  <p>I know about this question <a href="https://stackoverflow.com/questions/4223983/joptionpane-showinputdialog-with-custom-buttons">JOptionPane showInputDialog with custom buttons</a>, but it doesn't answer the question asked, it just references them to JavaDocs, which doesn't answer it.</p>
  
  <p>Code So Far:</p>
  
  <pre><code>Object[] options1 = {"Try This Number",
                   "Choose A Random Number",
                   "Quit"};
  
  JOptionPane.showOptionDialog(null,
                   "Enter a number between 0 and 10000",
                   "Enter a Number",
                   JOptionPane.YES_NO_CANCEL_OPTION,
                   JOptionPane.PLAIN_MESSAGE,
                   null,
                   options1,
                   null);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ik5H0.png" alt="How I want it to look"></p>
  
  <p>I would like to add a text field to this.</p>