📄 fprogressbar.java
字号:
/*
* Created on 2004-12-31
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.icbcsdc.ddlexp.ui.model;
import java.awt.Color;
import java.awt.Font;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.JProgressBar;
/**
* @author lijf
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class FProgressBar extends JProgressBar {
Timer timer = null;
boolean stop=false;
long scanInterval=1000;
public FProgressBar() {
setMinimum(0);
setMaximum(100);
setStringPainted(true);
setIndeterminate(true);
//setString(title);
setFont(new Font("宋体",Font.PLAIN,14));
setForeground(Color.BLUE);
setBackground(Color.LIGHT_GRAY);
this.setSize(200,50);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -