waitingform.java
来自「《J2ME实用教程》清华大学出版社出版」· Java 代码 · 共 33 行
JAVA
33 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?