import javax.microedition.midlet.*;import javax.microedition.lcdui.*;
/** * * @author Administrator * @version */public class imageItemlet extends MIDlet implements CommandListener,ItemCommandListener{ private Form aForm; private Image sohuImage; private Image neImage; private ImageItem sohuImageItem; private ImageItem neImageItem; private Display aDisplay; private Command exitCommand; private Command connectCommand; private Spacer aSpacer; private Alert anAlert; public imageItemlet() { aForm=new Form("ImageItemTest"); exitCommand=new Command("EXIT",Command.EXIT,1); connectCommand=new Command("Connect",Command.ITEM,2); aSpacer=new Spacer(10,2); anAlert=new Alert("Connecting...","Connecting to www.163.com ...", null,AlertType.INFO); try{ sohuImage=Image.createImage("/sohu.png"); sohuImageItem=new ImageItem(null,sohuImage,ImageItem.LAYOUT_RIGHT, "This is Sohu!"); aSpacer.setLayout(Item.LAYOUT_EXPAND);
我的绝色总裁未婚妻小说_我的J2ME编程练习(5)――ImageItem
http://m.bbyears.com/fanwenwang/5905.html
推荐访问:我的娇妻 我的家乡作文 我的将军啊 我的经纪人 我的绝色美房客免费阅读 我和我的经纪人 我的家乡