b374k
v10
Linux server.ho1onk.com 2.6.18-374.12.1.el5.lve0.8.54 #1 today : | at :
server ip : 207.0.0.1 | your ip : 66.220.149.11
safemode : OFF
> / home / ho1onk / public_html / note /
name author perms com modified label

menampilkan gambar di java Artikel rwxr-xr-x 0 07.39

Filename menampilkan gambar di java
Permission rw-r--r--
Author Artikel
Date and Time 07.39
Label
Action
tarararrraaaaaaaaaaaaaaaa


haha

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class ho1onk extends MIDlet implements CommandListener {
    Alert   a,a2;
    List   ls,ls2;
    Image   g,g2,g3,g4,g5,i1,i2,i3,i4;
    Display D;
    Form   fr;
    Command K,C1,C2,B,balik,baliklagi;
    Ticker jalan;
    public ho1onk (){
        a=new Alert("Selamat datang","Silahkan pilih",null,null);
        jalan = new Ticker ("Selamat datang");
       
        fr=new Form("Menu Utama");
        K=new Command("Exit",Command.OK,0);
        C2=new Command("About",Command.EXIT,1);
        C1=new Command("Album",Command.OK,1);
        B=new Command("Kembali",Command.BACK,0);

        ls=new List("Album Ku",List.IMPLICIT);
        fr.addCommand(K);
        fr.addCommand(C1);
        fr.addCommand(C2);
        fr.setTicker(jalan);
       
       
        try {
            g=Image.createImage("/mu.jpg");
            g2=Image.createImage("/hn.jpg");
            g3=Image.createImage("/1.gif");
            g4=Image.createImage("/1.gif");
            i1=Image.createImage("/icon1.png");
            i2=Image.createImage("/icon2.png");
            i3=Image.createImage("/icon3.png");
            i4=Image.createImage("/icon4.png");
         }catch(Exception e){e.printStackTrace();}
        fr.append(g);
        fr.append(g2);

        fr.setCommandListener(this);
       
    }
   
   
    public void startApp() {
        D=Display.getDisplay(this);
        D.setCurrent(fr);
       
    }
    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }

    public void commandAction(Command x, Displayable arg1) {
      if(x==K){
          destroyApp(true);
          notifyDestroyed();
         
   
      }
      if(x==B){
          D.setCurrent(fr);
         
      }
      if(x==balik){
          D.setCurrent(ls);
      }
      if (x==baliklagi){
          D.setCurrent(fr);
      }
      if(x==C2){
          a=new Alert("Tentang ho1onk","Nama : Holong Nainggolan \nKelas : TI P 1012 \nNPM : 1111455 \nJenis Kelamin : laki-laki \ne-mail : me[at]ho1onk[dot]me \nweb : www.ho1onk.com \nHobby : Hacking, Cracking, Coding & Security \nTeam : Medan Cyber Team - Komunitas IT Indonesia \n\n\nVisit and Join with us http://medancyberteam.web.id/forum\nGet c0d3 and feel the soul\n\n\nGreetz : Dosen saya pak fahmi, all member MedanCyberTeam & HN Community",null,null);
          jalan = new Ticker ("visit my site www.ho1onk.com my blog blog.ho1onk.com");
          B = new Command ("Kembali",Command.OK,0);
          a.addCommand(B);
          K = new Command ("Keluar",Command.EXIT,0);
          a.addCommand(K);
          a.setTicker(jalan);
          a.setCommandListener(this);
          a.setTimeout(Alert.FOREVER);
          D.setCurrent(a);
         
    }
      if(x==C1){
         
          K=new Command ("Keluar",Command.OK,0);
          ls.addCommand(K);
          baliklagi=new Command ("Back",Command.OK,1);
          // ls.addCommand(baliklagi);
          ls.append("Foto Keluarga",i1);
          ls.append("Foto Teman",i2);
          ls.append("Foto Kenangan",i3);
          ls.append("Foto Lainnya", i4);
          ls.setCommandListener(this);
         
          D.setCurrent(ls);
      }
        if (x==List.SELECT_COMMAND){
            int i=ls.getSelectedIndex();
            String p=ls.getString(i);
            if (p=="Foto Keluarga"){
                a=new Alert("About","foto Keluarga",null,AlertType.INFO);
                    fr=new Form("Foto Keluarga");
                    balik = new Command ("Kembali",Command.OK,0);
                    fr.addCommand(balik);
                 
                    K=new Command ("Keluar",Command.EXIT,1);
                 
                    fr.addCommand(K);
                    fr.append(g);
                    fr.append(g2);
                    fr.append(g3);
                    fr.setCommandListener(this);
                    D.setCurrent(fr);
            }
                if (p=="Foto Teman"){
                    a=new Alert("Selamat datang","Silahkan pilih",null,null);
                    fr=new Form("Foto teman");
                    balik = new Command ("Kembali",Command.BACK,0);
                    K=new Command ("Keluar",Command.EXIT,1);
                    fr.addCommand(balik);
                    fr.addCommand(K);
                    try {
                        g=Image.createImage("/icon1.png");
                        g2=Image.createImage("/icon2.png");
                        g3=Image.createImage("/icon3.png");
                    }catch(Exception e){e.printStackTrace();}
                    fr.append(g);
                    fr.append(g2);
                    fr.append(g3);
                    fr.setCommandListener(this);
                    D.setCurrent(fr);

            }
                if (p=="Foto Lainnya"){
                    a=new Alert("Selamat datang","Silahkan pilih",null,null);
                    fr=new Form("Foto Lainnya");
                    balik = new Command ("Kembali",Command.BACK,0);
                    K=new Command ("Keluar",Command.EXIT,1);
                    fr.addCommand(balik);
                    fr.addCommand(K);
                    try {
                        g=Image.createImage("/mu.jpg");
                        g2=Image.createImage("/hn.jpg");
                        g3=Image.createImage("/lock.png");
                    }catch(Exception e){e.printStackTrace();}
                    fr.append(g);
                    fr.append(g2);
                    fr.append(g3);
                    fr.setCommandListener(this);
                    D.setCurrent(fr);

            }
                if (p=="Foto Kenangan"){
                   
                    fr=new Form("Foto teman");
                    a=new Alert("Selamat datang","Silahkan pilih",null,null);
                   
                    balik = new Command ("Kembali",Command.BACK,0);
                    K=new Command ("Keluar",Command.EXIT,1);
                    fr.addCommand(balik);
                    fr.addCommand(K);
                   

                    try {
                        g=Image.createImage("/mu.jpg");
                        g2=Image.createImage("/hn.jpg");
                        g3=Image.createImage("/lock.png");
                    }catch(Exception e){e.printStackTrace();}
                    fr.append(g);
                    fr.append(g2);
                    fr.append(g3);
                    fr.setCommandListener(this);
                    D.setCurrent(fr);

            }
       
           
        }
     
    }
}

 

root@ho1onk © 2012 Robtz's Note - ho1onk