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

📄 resultform.java

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

package cn.edu.nwpu.MobileCampusClinet;

import java.util.Vector;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

/**
 *
 * @author NickJava
 */
public class ResultForm extends Form implements CommandListener{
    private Vector electiveArray;
    private String userName;
    private Command backCommand;
    private Display display;
    private Displayable displayable;
     private MIDlet midlet;
     private ElectiveUI electiveUI;
    /** Creates a new instance of ResultForm */
    public ResultForm(MIDlet midlet,Displayable displayable, Vector electiveArray , String userName) {
        super("操作结果");
         this.midlet=midlet;
        this.display=Display.getDisplay(midlet);
        this.displayable=displayable;
        this.electiveArray=electiveArray;
        this.userName=userName;
        electiveUI = new ElectiveUI(midlet,displayable,electiveArray,userName);
        backCommand = new Command("返回",Command.BACK,5);
         addCommand(backCommand);
        setCommandListener(this);
    }
     public void commandAction(Command c,Displayable d){
      
        if(c==backCommand){
            display.setCurrent(electiveUI);
        }
    }
    
}

⌨️ 快捷键说明

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