![]() |
navigation intro Your profilee Here :D click 'about' for more tagboard ShoutMix chat widget extras credits Designer : Melancholyy- BaseCode : komie Pictures : Pictures Host : Blogger |
Tuesday, October 20, 2009
7:41 AM ● that what i learn ...haha 7:35 AM ● import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class ex05 extends MIDlet implements CommandListener { Display d ; TextBox txtinformation; String[] stringElements={"zz","xx","cc"}; Command cmdExit, cmdNextInfo; int counter=0; public void startApp() { txtinformation = new TextBox("Information",stringElements[counter],500,TextField.ANY TextField.UNEDITABLE); cmdExit = new Command("Exit",Command.EXIT,0); cmdNextInfo = new Command("Next",Command.SCREEN,1); txtinformation.addCommand(cmdExit); txtinformation.addCommand(cmdNextInfo); txtinformation.setCommandListener(this); d = Display.getDisplay(this); d.setCurrent(txtinformation); } public void commandAction(Command cmd, Displayable d) { if(cmd==cmdExit) { notifyDestroyed(); } if(cmd==cmdNextInfo) { txtinformation.setString(stringElements[++counter]); if(counter==2) counter=0; } } public void pauseApp() { } public void destroyApp(boolean c) { } } Monday, July 13, 2009
4:55 AM ● hi .post again ..haha. Wednesday, June 17, 2009
7:34 AM ●
Saturday, May 16, 2009
6:33 AM ● how to use baby web server Monday, December 29, 2008
11:51 PM ● Tuesday, October 21, 2008
5:21 AM ● hello |
------ ( YOUARENOTALONE. ) |