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

📄 progressui.java

📁 这是我们学校教的j2me程序开发实例从入门到精通自带关盘的源代码
💻 JAVA
字号:
/*
 * ProgressUI.java
 *
 * Created on 2006年5月22日, 下午8:54
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package cn.edu.uestc.pandawireless.ui;
import javax.microedition.lcdui.*;
import cn.edu.uestc.pandawireless.model.*;
/**
 *
 * @author pandaxiaoxi
 */
public class ProgressUI extends Form implements CommandListener{
    private HttpHandler httphandler = null;
    private static Command exitCommand = new Command("返回",Command.BACK, 1);
    /** Creates a new instance of ProgressUI */
    public ProgressUI(String title,HttpHandler httphandler) {
        super(title);
        this.httphandler = httphandler;
        this.append("正在连接服务器,请稍候...");
        this.addCommand(exitCommand);
        this.setCommandListener(this);
    }
    
    public void commandAction(Command cmd,Displayable displayable){
        if(cmd == exitCommand){
            httphandler.stop();
        }
    }
    
}

⌨️ 快捷键说明

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