dwaneos
asked on
Process JDialog
Does anyone have a quick class to produce a JDialog saying processing or something along that lines, to be displayed and automatically disposed of while a procedure is processing... leave the main JFrame process anyway while the JDialog is being displayed and then be automatically disposed of.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://javaalmanac.com/egs/javax.swing/ProgMon.html
If you want to build it yourself then the SwingWorker class makes it fairly straightforward.
ASKER
I don't get it... how does the progessMonitor know when to dispose of itself when the process has stopped.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What about the isCancelled()?
Where does that fit in to all of it?
Where does that fit in to all of it?
There is a "Cancel" button on the progressMonitor dialog...
if the user presses it, isCancelled() returns true...
if the user presses it, isCancelled() returns true...