Is there any simple way to create instance of modal DialogBox with single text input control, which will return String entered into the text control on pressing "OK"?
I'm looking for something similar to JOptionPane.showInputDialog() one-liner from Swing.
You can create your own class,which will contain all you need. Small example:
and example of using