Membuat program kalkulator bukanlah hal yang sulit, seperti contoh kode program dibawah ini. Coba anda kembangkan kode program dibawah ini, seperti menambahkan warna dan lainnya.import javax.microedition.midlet.*;//mengimport LCDUIimport javax.microedition.lcdui.*;//supaya program bisa mengerti perintah yang diberikan pada tombol//supaya bisa merespons perubahan yang terjadi pada textbox maka tambahkanlah perintah ItemStateListenerpublic class kalkulator extends MIDlet implements CommandListener { //Mendeklarasikan layar sebagai objek display...
This is default featured slide 1 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
This is default featured slide 2 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
This is default featured slide 3 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
This is default featured slide 4 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
This is default featured slide 5 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Jumat, 27 Januari 2012
Minggu, 22 Januari 2012
J2ME - Program Zodiak Sedernaha
Berikut ini adalah program zodiak sederhana, dan menurut saya masih banyak kekurangannya. Anda bisa bereksperimen sediri nantinya. Misalnya menambahkan kotak input yang meminta tanggal, bulan dan tahun lahir yang sebelumnya tidak ada pada program ini.import java.util.Calendar;import java.util.Date;import java.util.TimeZone;import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class zodiak extends MIDlet implements CommandListener { Display layar; Form fm; DateField df1,df2,df3; TextField tanggal,zodiak;...
J2ME - Menampilan Date dan Time
Kode dibawah ini mendemonstrasikan bagaimana cara menampilkan Date dan Time di J2ME.import java.util.Timer;import java.util.TimerTask;import javax.microedition.midlet.*;import javax.microedition.lcdui.*;/** * @author idisuwardi.blogspot.com */public class waktu extends MIDlet { Display layar; Form fm; Timer tm; TimerJalan task; public void startApp() { layar=Display.getDisplay(this); fm=new Form("Pemakaian Timer"); tm=new Timer(); task=new TimerJalan(); tm.schedule(task,0,5000); layar.setCurrent(fm);...
J2ME - Membuat Program StopWatch Sederhana

Berikut ini adalah program StopWatch sederhana yang saya buat dengan menggunakan bahasa pemrograman Java. Di program ini hanya ada tombol start untuk memulai/ menjalankan dan Pause untuk berhenti.import java.util.Timer;import java.util.TimerTask;import javax.microedition.midlet.*;import javax.microedition.lcdui.*;/** * @author Idisuwardi.blogspot.com */public class stopwatch extends MIDlet implements CommandListener { Display layar; Form fm;...