How do you add custom text to the buttons of a JOptionPane.showInputDialog?
I know about this question JOptionPane showInputDialog with custom buttons, but it doesn't answer the question asked, it just references them to JavaDocs, which doesn't answer it.
Code So Far:
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);
I would like to add a text field to this.