This content has been marked as final. Show 2 replies
I need (in a point of the program) that the data flow of the elaboration hangs for an answer coming from the user.This seems to call for a modal dialog (especially simple using one of the JOptionPane.showXxxDialog() methods). See the Swing tutorial chapter on [How to make dialogs|http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html] .
In that point of the program a dialog is raised to pick up some data from the user, and the elaboration should be continue
only when the user finished to fill the form in the dialog.
Note that if you need other tasks to go on all the same (not waiting for user input), you can do that with threads (there are no restrictions about using threads underneath dialogs, except the usual Swing-specific threading rules, see the [dedicated chapter|http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html] in the tutorial again).
hi jduprez .
that is a good suggestion.
I'll try it.
thank you regards