I was wondering is it possible to change the OK Cancel Button to custom string in java? I have
JOptionPane.showConfirmDialog(message, title, JOptionPane.OK_C
I know this is very old question. But for future reference, we can do it by add 2 lines before showConfirmDialog:
showConfirmDialog
UIManager.put("OptionPane.cancelButtonText", "Go back"); UIManager.put("OptionPane.okButtonText", "Save");