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 a
Have a look at How to Make Dialogs: Customizing Button Text.
Here is an example given:
Object[] options = {"Yes, please",
"No, thanks",
"No eggs, no ham!"};
int n = JOptionPane.showOptionDialog(frame,//parent container of JOptionPane
"Would you like some green eggs to go "
+ "with that ham?",
"A Silly Question",
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,//do not use a custom Icon
options,//the titles of buttons
options[2]);//default button title