Link to home
Start Free TrialLog in
Avatar of dwaneos
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
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you want to build it yourself then the SwingWorker class makes it fairly straightforward.
Avatar of dwaneos
dwaneos

ASKER

I don't get it... how does the progessMonitor know when to dispose of itself when the process has stopped.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dwaneos

ASKER

What about the isCancelled()?
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...