Would you like to react to this message? Create an account in a few clicks or log in to continue.

ʴٻ Applet ҧ

Go down

ʴٻ Applet  ҧ Empty ʴٻ Applet ҧ

ตั้งหัวข้อ  Admin Tue May 27, 2008 2:27 pm


package images;

import java.applet.*;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

public class ShowImages extends Applet {

// chawdoy2.jpg
Image img;
public void init() {
setFont(new Font("Microsoft sans serif",Font.PLAIN, 16));
img = getImage(getCodeBase(),"chawdoy2.jpg");
// getCodeBase() ʴٻҾ
}

public void paint(Graphics g) {
g.drawImage(img, 50, 50,this);
g.drawString("ʴ", 20, 20);
}


}

Admin
Admin
Admin

จำนวนข้อความ : 112
Registration date : 18/05/2008

http://chawban.chocoforum.com

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน

- Similar topics

 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ