SelamatDatangApplet2.java


Skrip SelamatDatangApplet2.java :

// SelamatDatangApplet2.java
// Tanggal : 22 April 2009

//Java packages
import java.awt.Graphics;
import javax.swing.JApplet;

public class SelamatDatangApplet2 extends JApplet {
public void paint ( Graphics g )
{
super.paint ( g );
g.drawString(“Selamat Datang”, 25, 25);
g.drawString(“di Program Java – Applet”, 25, 40);

} // mengakhiri metode
} //mengakhiri cless

Skrip SelamatDatangApplet2.html :

<HTML>
<applet code=”SelamatDatangApplet2.class” width = “300” height = “60”>
</applet>
</HTML>

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s