📄 progressui.java
字号:
/*
* ProgressUI.java
*
* Created on 2006年9月6日, 上午12:48
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.j2me.networld.connection;
import javax.microedition.lcdui.*;
/**
*
* @author DONGHOME
*/
public class ProgressUI extends Form
implements ProgressListener
{
private Gauge gauge = null;
/** Creates a new instance of ProgressUI */
public ProgressUI(String title)
{
super(title);
}
public void init()
{
gauge = new Gauge("Reading data, please wait...", false, 100, 0);
this.append(gauge);
}
public void onProgress(int percent)
{
gauge.setValue(percent);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -