I would like to have a customized InputDialog so that following code could work. I am creating an old fashion application. The InputDialog will be created once users click a button on a view. I am wondering if we could create a customized input dialog to have the feature that my title says. Just let me know if anything is unclear.
String s = MyCustomInputDialog("my question");
// show the input dialog that will be either closed in 5 seconds or closed by the user's action
System.out.println(s)
// print null or print user's input