String prompt (String prompt, String default, String title)
Displays a dialog allowing the user to enter text
Returns null if the user cancelled the dialog, the text otherwise