⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e807. setting the popup delay of a progress monitor dialog.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
By default, the progress monitor delays for a short period before it is displayed. There are two properties that control when the dialog is displayed - - millisToPopup and millisToDecideToPopup. The progress monitor computes a time-to-completion based on the how fast the value changes. The dialog will not appear as long as the predicted time-to-completion is less than millisToPopup. millisToDecideToPopup determines a minimum time, since the progress monitor was created, before the dialog can appear. 
In summary, the dialog is shown only if it has been millisToDecideToPopup milliseconds after the progress monitor was created and the predicted time-to-completion is greater than millisToPopup. 

    // Get delay based on time-to-completion
    int millisToPopup = pm.getMillisToPopup();                 // 2000
    
    // Get minimum delay
    int millisToDecideToPopup = pm.getMillisToDecideToPopup(); // 500
    
    // To make progress monitor popup immediately, set both to 0
    pm.setMillisToPopup(0);
    pm.setMillisToDecideToPopup(0);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -