How to omit the “Cancel” button in Java ProgressMonitor?

后端 未结 2 1691
清酒与你
清酒与你 2020-12-17 06:10

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.

<
2条回答
  •  借酒劲吻你
    2020-12-17 07:02

    That's not possible. You can however create a custom progress monitor as outlined in this tutorial.

提交回复
热议问题