Input Dialog Box

Hello.

I wish to design a Dialog to get String from a TextField component (a prompt box).

I would like this object to be totally independant from the parent frame :

The parent frame could create an instance of this object

ex: PromptDialog thisBox = new PromptDialog( this, ...

And then the parent frame would call a blocking method of the Dialog, waiting for a String

ex: String myString = thisBox.getPrompt();

My problem is to design this blocking method, which must only return a String to the parent frame when the user clicks on the validation button of the Dialog.

Has someone a solution ?

[657 byte] By [JPatapin] at [2007-9-26 3:32:13]
# 1
What you describe sounds like a modal dialog. Have you checked if a modal dialog would work for you
arcosh at 2007-6-29 11:59:30 > top of Java-index,Desktop,Core GUI APIs...