![]() |
| |||||||
| Programlama C,Delphi,Visual Basic ve diğer tüm programlama dilleri hakkında dökümanlar ve bilgilerin merkezi |
| | |
|
| | LinkBack | Konu Seçenekleri |
| | #1 |
| Halk ![]()
Mesajlar: 20
Puan: 100 | deneme.java dosya oluştur içine at bunları import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class deneme extends MIDlet implements CommandListener{ private Form frm1 = new Form("form1"); private Form frm2 = new Form("form2"); private Command cmd1 = new Command("Tamam",Command.OK,0); private Command cmd2 = new Command("Çıkış",Command.EXIT,0); private TextField tf1 = new TextField("ABC",null,20,TextField.ANY); private TextField tf2 = new TextField("123",null,20,TextField.NUMERIC); private StringItem si1 = new StringItem(null,null); public deneme () { frm1.setCommandListener (this); frm1.append(tf1); frm1.append(tf2); frm1.addCommand (cmd1); Display.getDisplay (this).setCurrent (frm1); } protected void startApp () {} protected void pauseApp () {} protected void destroyApp (boolean b) {} public void commandAction (Command c, Displayable displayable) { if(c == cmd1){ frm2.setCommandListener (this); frm2.append(si1); frm2.addCommand (cmd2); si1.setText ("ilk kelime " + tf1.getString () + " ve ikinci kelime " + tf2.getString () + " olarak girilmiştir."); Display.getDisplay (this).setCurrent (frm2);} if(c == cmd2){ destroyApp(false); notifyDestroyed();} } } |
|
![]() |
| Konuyu toplam 0 üye ve 1 ziyaretçi okuyor | |
| Konu Seçenekleri | |
|
|
Benzer Konular | ||||
| Konu | Konuyu Açan | Forum | Cevaplar | Son Mesaj |
| Saat - Pascal Örnek Kodlar | ProLive | Programlama | 1 | 6.02.2007 05:39 |
| Öss Örnek sorular | ProLive | Tüm Konular | 2 | 1.03.2006 13:29 |
| Mors alfabesi - C / C++ Örnek Kodlar | ProLive | Programlama | 3 | 27.02.2006 13:47 |