/**
* @(#)TestAwtPaint.java
*
*
* @author
* @version 1.00 2008/10/18
*/import java.awt.*;public class TestAwtPaint extends java.applet.Applet {
/** Initialization method that will be called after the applet is loaded
* into the browser.
*/
int x;
public void init() {
// TODO start asynchronous download of heavy resources
x=5;
} public void start(){
x=x+20;
repaint();
}
public void stop(){
}
public void paint(Graphics g) {
g.drawString("hello?",20,x+10);
}
}
* @(#)TestAwtPaint.java
*
*
* @author
* @version 1.00 2008/10/18
*/import java.awt.*;public class TestAwtPaint extends java.applet.Applet {
/** Initialization method that will be called after the applet is loaded
* into the browser.
*/
int x;
public void init() {
// TODO start asynchronous download of heavy resources
x=5;
} public void start(){
x=x+20;
repaint();
}
public void stop(){
}
public void paint(Graphics g) {
g.drawString("hello?",20,x+10);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货