scriptnya :
import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Midlet_TextBox extends MIDlet implements CommandListener{ Display display; TextBox tb; Command exitCmd, t; public Midlet_TextBox () { tb=new TextBox("Aplikasi Text Box","Hello World Penggunaan Text Box",100,0); tb.setCommandListener(this); display.getDisplay(this).setCurrent(tb); } public void startApp() { } public void pauseApp() { } public void destroyApp(boolean unconditional) { } }
screen shot hasil run programnya :
gb. run class Midlet_TextBox
untuk lebih jelas klik gambarnya
Tidak ada komentar:
Posting Komentar