我可以让ProgressMonitor对话模式吗? [英] Can I make ProgressMonitor dialog modal?

查看:199
本文介绍了我可以让ProgressMonitor对话模式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 ProgressMonitor 模式进行对话?



EDIT:

JAVA API中的ProgressMonitor类将显示一个顶部的对话框,但不包含Modal。用户仍然可以访问后台GUI。我正在寻找一个Modal对话框来显示进度,并允许用户在中间停止任务。

解决方案

如何使用进度监视器 a>, 决定时应考虑许多因素是否使用进度栏或进度监视器 。作为实施详情, ProgressMonitor 是无模式的,因为Solaris 实现不支持 Dialog.setModal 。实际上,模式 ProgressMonitor 只是一个 JOptionPane JProgressBar ,但用户可能会欣赏避免这种模态行为的努力。


is there a way to make the dialog from ProgressMonitor modal?

EDIT:

The ProgressMonitor class in JAVA API will bring a dialog which is on the top but not Modal. User still has access to the background GUI. I am looking for a Modal dialog to show the progress and also allow user to stop the task in the middle.

解决方案

As discussed in How to Use Progress Monitors, a number of factors should be considered when Deciding Whether to Use a Progress Bar or a Progress Monitor. As an implementation detail, ProgressMonitor is modeless because "the Solaris implementation doesn't support Dialog.setModal yet." As a practical matter, a modal ProgressMonitor is just a JOptionPane with a JProgressBar, but users may appreciate an effort to avoid such modal behavior.

这篇关于我可以让ProgressMonitor对话模式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆