⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaugeupdater.java

📁 J2ME郑州公交信息查询系统
💻 JAVA
字号:
package GongJiao;

import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Gauge;

public class GaugeUpdater implements Runnable {

	private Gauge gau;
	Form f;
	Display dis;
	GaugeUpdater(Gauge gau,Form f,Display dis)
	{
		this.gau=gau;
		this.f=f;
		this.dis=dis;
	}
	public void run()
	{
		
		try
		{
			while(gau.getValue()<gau.getMaxValue())
			{
				Thread.sleep(100);
				gau.setValue(gau.getValue()+1);
			}
			
			/*gau.setLabel("升级完成!!!.");*/
			dis.setCurrent(f);
			
		}
		catch(InterruptedException Error)
		{
			throw new RuntimeException(Error.getMessage());
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -