📄 waitingform.java
字号:
/*
* WaitingForm.java
*
* Created on 2006年5月5日, 下午3:11
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.j2medev.chapter4;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Gauge;
/**
*
* @author ming
*/
public class WaitingForm extends Form {
private Gauge gauge = new Gauge("progress...",false,10,0);
/** Creates a new instance of WaitingForm */
public WaitingForm() {
super("reading data from yahoo!");
append(gauge);
}
public void update(){
gauge.setValue((gauge.getValue()+1)%gauge.getMaxValue());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -