SelamatDatangApplet3.java


skrip SelamatDatangApplet3.java :

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

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

public class SelamatDatangApplet3 extends JApplet {
public void paint ( Graphics g )
{
super.paint ( g );

g.drawLine( 15 , 10 , 210 , 10 );
g.drawLine( 15 , 45 , 210 , 45 );
g.drawString(“Selamat Datang”, 25, 25);
g.drawString(“di Program Java – Applet”, 25, 40);

} // mengakhiri metode
} //mengakhiri cless

Skrip SelamatDatangApplet3.html :

<HTML>
<applet code=”SelamatDatangApplet3.class” width = “300” height = “80”>
</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