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

📄 personalinfoui.java

📁 用J2ME写的一个移动校园管理软件。我是看这个学习J2ME的。现在看来写得不是很好。
💻 JAVA
字号:
/*
 * PersonalInfoUI.java
 *
 * Created on 2006年9月2日, 上午2:55
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cn.edu.nwpu.MobileCampusClinet;

import cn.edu.nwpu.MobileCampusServer.UserBean;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;


/**
 *
 * @author NickJava
 */
public class PersonalInfoUI extends Form implements CommandListener {
     private UserBean user;
    private Command backCommand;
    private Display display;
    private Displayable displayable;
     private MIDlet midlet;
     FunctionList functionList;
    /** Creates a new instance of PersonalInfoUI */
    public PersonalInfoUI(String title,UserBean user,MIDlet midlet,Displayable displayable) {
        super(title);
        this.midlet=midlet;
        this.display=Display.getDisplay(midlet);
        this.displayable=displayable;
        this.user=user;
        functionList = new FunctionList(user,midlet,displayable);
        backCommand = new Command("返回",Command.BACK,5);
         addCommand(backCommand);
        setCommandListener(this);
    }
    public void commandAction(Command c,Displayable d){
      
        if(c==backCommand){
            display.setCurrent(functionList);
        }
    }
}

⌨️ 快捷键说明

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