I practise an input-text dialog as follows:
String answer = (String)JOptionPane.showInputDialog
Now, if the preset is longer than +- 25 characters, only a portion of it is shown.
You can't widen the dialog by the cursor, so, is there a way to 'pack()' the dialog,
so that all preset text becomes visible?
I'd rather not write a custom dialog in this case.