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

📄 engineruntime.java

📁 简介: 今天为网友提供的是JAVA源码
💻 JAVA
字号:
package com.power.pipeengine;/** * <p>Title: PIPE Engine</p> * <p>Description: Global Planning Optimization Engine</p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: Paraster, Inc.</p> * @author unascribed * @version 1.0 */import javax.swing.*;import java.util.*;import java.awt.*;public class EngineRunTime {    private JLabel myLabel;    private StopWatch myWatch;    private java.util.Timer myTimer = null;   private static final EngineRunTime INSTANCE =                              new EngineRunTime();    private EngineRunTime() {        myLabel = new JLabel();        myWatch = new StopWatch( myLabel );    }    public static EngineRunTime getInstance( ) {        return INSTANCE;    }    public void start() {        myTimer = new java.util.Timer();        myTimer.schedule( myWatch, 0, 10345 );    }    public void cancel() {        myWatch.cancel();        myTimer.cancel();    }    public JLabel getLabel() {        return myWatch.getLabel();    }    public void reset() {        myWatch.reset();        //myTimer = new java.util.Timer();        //myWatch = new StopWatch( myLabel );       // myTimer.schedule( new StopWatch( myLabel ), 345 );    }}

⌨️ 快捷键说明

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