Modal window help

hi all,

I need to put a modal window in my app, a sort of 'please wait...' window that blocks all (ALL! :) ) user input during a time-consuming operation. I also need to be able to change the message during the time-consuming operation.

A Jdialog doesn't fit because it requests user input.

What I need is something like this:

<prepare'please wait...' window>

<set window as modal>

startLongOperation();

<close modal window >

Any suggestions?

TIA

[562 byte] By [EllEffCeea] at [2007-10-2 16:48:54]
# 1
Couldn't you use dispose() method?
hiwaa at 2007-7-13 18:00:04 > top of Java-index,Desktop,Core GUI APIs...
# 2
I JDialog does not necessarily require user input. You could have the window not have any button and not be decorated and then call setVisible(false) programmatically when the long operation stops.
BaltimoreJohna at 2007-7-13 18:00:04 > top of Java-index,Desktop,Core GUI APIs...
# 3
[url http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html]How to Use Progress Bars[/url]
camickra at 2007-7-13 18:00:04 > top of Java-index,Desktop,Core GUI APIs...
# 4
Use ProgressMonitor. Put a glasspane over your frame. Changethe cursor to be WAIT_CURSOR.
es5f2000a at 2007-7-13 18:00:04 > top of Java-index,Desktop,Core GUI APIs...