TugasOnlineJavaLanjut_201481053_Simon_Peres

advertisement
TUGAS
PEMROGRAMAN JAVA LANJUT
Dosen Pembimbing :
Fransiskus Adikara, S.Kom, M.MSI
Disusun Oleh :
Nama : Simon Peres
NIM
: 2014 81 053
FAKULTAS I LMU KOMPUTER
JURUSAN TEKNIK INFORMATIKA
UNIVERSITAS ESA UNGGUL
JAKARTA
Source Code :
import java.awt.*;
import java.applet.Applet;
public class a extends Applet {
Image picture1, picture2, picture3;
public void init() {
picture1 = getImage(getCodeBase(),"a.png");
picture2 = getImage(getCodeBase(),"b.png");
picture3 = getImage(getCodeBase(),"c.jpg");
}
public void paint(Graphics g) {
g.drawImage(picture1, 0,0, this);
g.drawImage(picture2, 200,200, this);
g.drawImage(picture3, 400,400, this);
}
}
Hasil Tampilan
Download