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

📄 taskmonitorbuttonboxdialog.java

📁 一个用java写的地震分析软件(无源码)-used to write a seismic analysis software (without source)
💻 JAVA
字号:
package org.trinet.util.graphics.task;
import java.awt.*;
import javax.swing.*; 

/** Extension of AbstractTaskMonitorDialog containing a button enabled task panel
  * component for controlling the task starting, stopping, and dialog disposal.
  * By default, this dialog does not automatically dispose of dialog if task stops.
  * Use setDisposeOnStop(true) to change default behavior.
 */
public class TaskMonitorButtonBoxDialog extends AbstractTaskMonitorDialog {

    public TaskMonitorButtonBoxDialog() {
        super();
        progressMeterVisible  = true;
        disposeOnStop         = false;
    }

/**
  * Creates a TaskMonitorButtonBoxPanel for this Dialog component type.
*/
    protected AbstractTaskMonitorPanel createTaskMonitorPanel(AbstractMonitorableTask task) {
        return new TaskMonitorButtonBoxPanel(task);
    }

/**
  * Defaults always true, since the dialog's task is supposedly under button control.
*/ 
    public void setProgressMeterVisible(boolean value) {
         progressMeterVisible = true;   // always visible
    }

}

⌨️ 快捷键说明

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