ʹ ѡͧ Applet
:: ǡѺǹʴŢͧ :: Java Applet
หน้า 1 จาก 1
ʹ ѡͧ Applet
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);
// ʴѹʴ "ǺҹҺҹ" ͡
}
}
Re: ʹ ѡͧ Applet
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);
// ʴѹʴ "ǺҹҺҹ" ͡
}
}
Re: ʹ ѡͧ Applet
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);
}
}
Similar topics
» ?????? Applet ??Ѻ
» ??ػ applet ?ա????
» ????? Thread ? Applet
» ????ʴ??ٻ? Applet ???ҧ????
» ??? add ??? Applet ???? Frame
» ??ػ applet ?ա????
» ????? Thread ? Applet
» ????ʴ??ٻ? Applet ???ҧ????
» ??? add ??? Applet ???? Frame
:: ǡѺǹʴŢͧ :: Java Applet
หน้า 1 จาก 1
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ