I get an error: no suitable method found for showMessageDialogwhen I try to configure the showMessageDialog button to say "Start" instead of "OK".
This is the code:
JOptionPane.showMessageDialog(frame, radioPanel, "Start Game", JOptionPane.PLAIN_MESSAGE, null, new String[]{"Start"});
Can anyone please indicate why I can get this error.
Thanks in advance
source
share