当前位置:编程学习 > JSP >>

我的J2ME编程练习(4)——StringItem


/*
 * stringItemlet.java
 *
 * Created on 2005年4月14日, 下午4:26
 */
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
 *
 * @author  Administrator
 * @version
 */
public class stringItemlet extends MIDlet implements CommandListener,
ItemCommandListener{
    private Form aform;
    private Command okCommand;
    private Command exitCommand;
    private Command hllinkCommand;
    private Command bCommand;
    private Display aDisplay;
    private StringItem hlstringItem;
    private StringItem bstringItem;
    private Alert hlAlert;
    private Alert bAlert;
    public stringItemlet(){
        okCommand=new Command("OK",Command.OK,1);
        exitCommand=new Command("EXIT",Command.EXIT,1);
        hllinkCommand=new Command("LINK",Command.ITEM,2);
        bCommand=new Command("BUTTON",Command.ITEM,2);
        aform=new Form("StringItemTest");
        //if click hyperlink "here",display anAlert
        hlstringItem=new StringItem(null,"here",Item.HYPERLINK);
补充:Jsp教程,J2ME开发 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,