Can i use showInputDialog with my custom buttons or can i rename \"OK\" and \"Cancel\" button on showInputDialog.
Check out the JOptionPane documentation.
You can send an array of objects that define the buttons:
Show a warning dialog with the options OK, CANCEL, title 'Warning', and message 'Click OK to continue':
Object[] options = { "OK", "CANCEL" };
JOptionPane.showOptionDialog(null, "Click OK to continue", "Warning",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
null, options, options[0]);