resultform.java

来自「用J2ME写的一个移动校园管理软件。我是看这个学习J2ME的。现在看来写得不是很」· Java 代码 · 共 49 行

JAVA
49
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?