📄 statuspanel.java
字号:
package DeApp1.panel;
import java.awt.*; // Import all classes from the java.awt package
// AWT is the Abstract Window Toolkit. The AWT
import java.io.*;
import DeApp1.screen.*; // Import screens
public class StatusPanel extends Label
/***********************************************************
** **
** The little status panel at the bottom of the **
** application. **
** **
** Authors: Mikal Keenan **
** Rainer Storn **
** **
***********************************************************/
{
public final static String runningString = "Running...";
public final static String pausedString = "Paused...";
public final static String completedString = "Completed...";
public final static String nullString = "";
public final static Font labelFont = new Font ("Dialog", Font.PLAIN, 10);
public DEScreen deScreen;
public StatusPanel (DEScreen app)
/***************************************
** Constructor. **
***************************************/
{
deScreen = app;
setFont (labelFont);
}
public void idle ()
/***************************************
** Show nothing **
***************************************/
{
setText (nullString);
}
public void running ()
/***************************************
** Show "Running" **
***************************************/
{
setText (runningString);
}
public void pause ()
/***************************************
** Show "Paused" **
***************************************/
{
setText (pausedString);
}
public void resume ()
/***************************************
** Show "Running" **
***************************************/
{
setText (runningString);
}
public void stop ()
/***************************************
** Show nothing **
***************************************/
{
setText (nullString);
}
public void done ()
/***************************************
** Show "Completed" **
***************************************/
{
setText (completedString);
}
}// StatusPanel
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -