My task is necessary and shouldn’t be canceled, how do I ask ProgressMonitor not to display the “Cancel” button, so when it finishes, it will auto close the panel.
Frank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using the ProgressMonitorDemo from the Swing tutorial (linked to by BalusC) I made the following changes:
You will need to download the Swing Utils class as well.
The code should only be executed once, otherwise you get a NPE when the dialog closes. I’ll let you tidy that up :).