string prompt doesn't appear in showInputDialog
I have the following code...
newSpecialAbilityName = (String) JOptionPane.showInputDialog(parentGUI, "Enter name of Special Ability to add.", "xyz", JOptionPane.PLAIN_MESSAGE, null, null, "");
The result is a dialog box that doesn't display the string, "Enter name of Special Ability to add."
Also, only an OK button appears. There is no Cancel button. I adapted this from a Sun tutorial, and their example shows the Cancel button.
What am I doing wrong?