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

📄 008159b6ec9a001b1a36b107245978e8

📁 《J2ME实用教程》 源文件下载 本书没有仅仅局限于J2ME单机游戏的开发
💻
字号:

package Chapter10.bankbillClent;

import java.io.*;

import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;

import com.chapter16.shared.BillInfo;


public class BankBillListUI extends Form implements CommandListener {
	private Display display;
	private Displayable parent;
	private BillInfo[] binfo;
	private Command backCommand;
	public BankBillListUI(MIDlet midlet,Displayable parent,BillInfo[] binfo) {
		super("缴费清单");
		
		backCommand = new Command("返回", Command.BACK, 5);
		
		this.display = Display.getDisplay(midlet);
		this.parent = parent;
		this.binfo = binfo;
		
		if(binfo != null){
			for(int i = 0; i< binfo.length;i++){
			this.append("第 "+ (i+1) +" 条信息:");
			this.append(binfo[i].getBilldate());
			this.append(binfo[i].getMoney());
			this.append(binfo[i].getReason());
			}
		}	
		
		this.addCommand(backCommand);
		this.setCommandListener(this);
	}

	public void commandAction(Command c, Displayable d) {
		if(c == backCommand){
			display.setCurrent(parent);
		}
		
	}
	

}

⌨️ 快捷键说明

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