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 12:39 pm



package simple;

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

public class FiveMethod extends Applet {

private String myName;

@Override
public void destroy() {
super.destroy();
}

@Override
public void init() {
this.myName = "ǺҹҺҹ";
// ˹ = "ǺҹҺҹ"
}


@Override
public void start() {
super.start();
}

@Override
public void stop() {
super.stop();
}


public void paint(Graphics g) {
g.drawString(this.myName, 20, 50);
// ʴѹʴ "ǺҹҺҹ" ͡
}



}
Admin
Admin
Admin

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

http://chawban.chocoforum.com

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

ʹ ѡͧ Applet Empty Re: ʹ ѡͧ Applet

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

Admin พิมพ์ว่า:
package simple;

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

public class FiveMethod extends Applet {

private String myName;

@Override
public void destroy() {
super.destroy();
}

@Override
public void init() {
this.myName = "ǺҹҺҹ";
// ˹ = "ǺҹҺҹ"
}


@Override
public void start() { }

@Override
public void stop() {
// ҵç Minimized ǢҨ
this.myName = "˹˧";
}


public void paint(Graphics g) {
g.drawString(this.myName, 20, 50);
// ʴѹʴ "ǺҹҺҹ" ͡
}



}

Admin
Admin
Admin

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

http://chawban.chocoforum.com

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

ʹ ѡͧ Applet Empty Re: ʹ ѡͧ Applet

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


package simple;

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

public class FiveMethod extends Applet {

private String myName;
int count =0;


public void paint(Graphics g) {
g.drawString(this.myName, 20, 50);
// ʴѹʴ "ǺҹҺҹ" ͡

g.drawString("ʴǷ "+(++count) , 20, 80);

}

}
Admin
Admin
Admin

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

http://chawban.chocoforum.com

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

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

- Similar topics

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