Program Java Mobile ( Choice Group )


Pemrograman Mobile

Pembangunan Aplikasi Mobile, kali ini Comxero akan share tentang Java Mobile. Java mobile ini dibuat menggunakan aplikasi netbeansDalam aplikasi Comxero membahas tentang Choice Group, Menu, dan animasi bergerak di mobile menggunakan netbeans.

Langsung saja ini source code nya, atau sobat dapat download aplikasi nya Disini,..


Source code :

public class AndyComxeroApps extends MIDlet implements CommandListener {
Display display;
Form choiceForm;
Command SaveCommand = new Command("Save", Command.OK, 1);
Command DeleteCommand = new Command("Delete", Command.OK, 1);
Command EditCommand = new Command("Edit", Command.OK, 1);
Command CancelCommand = new Command("Cancel", Command.EXIT, 1);
Command ExitCommand = new Command("Exit", Command.EXIT, 1);
Ticker ticker = new Ticker(
"UNIKA SANTO THOMAS SU");
ChoiceGroup choiceExclusive,choiceMultiple,choicePopup;



public AndyComxeroApps(){
choiceForm = new Form("Fakultas Ilmu Komputer");
choiceForm.setTicker(ticker);
choiceForm.addCommand(SaveCommand);
choicePopup = new ChoiceGroup("PROGRAM STUDI", Choice.POPUP);
choicePopup.append("TEKNIK INFORMATIKA", null);
choiceExclusive = new ChoiceGroup("JENJANG", Choice.EXCLUSIVE);
choiceExclusive.append("S2", null);
choiceExclusive.append("S1", null);
choiceMultiple = new ChoiceGroup("PEMINATAN", Choice.MULTIPLE);
choiceMultiple.append("JARINGAN KOMPUTER", null);


public void startApp() {
if (display == null){
display = Display.getDisplay(this);
display.setCurrent(choiceForm);

public void destroyApp(boolean unconditional) {
}

public void commandAction(Command c, Displayable d){
if (c == ExitCommand){
destroyApp(true);
notifyDestroyed(); 



Dari program diatas jika kita jalankan, akan mendapatkan hasil seperti gambar di bawah ini :

Hasil Screenshot


Program Java Mobile ( Choice Group )

Jangan lupa likenya ya sob,..
Thanks For visit,,