当前位置: 技术问答>java相关
Applet的多线程问题-100分
来源: 互联网 发布时间:2017-04-24
本文导语: 源文件如下: ------------------------------------------------------------------ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class AniLabel extends JApplet implements Runnable { private Thread aniLabel; private int y; public stati...
源文件如下:
------------------------------------------------------------------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class AniLabel extends JApplet implements Runnable {
private Thread aniLabel;
private int y;
public static void main(String[] args) {
Console.run(new AniLabel(), 300, 400);
}
public void run() {
for (y = 0; y
------------------------------------------------------------------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class AniLabel extends JApplet implements Runnable {
private Thread aniLabel;
private int y;
public static void main(String[] args) {
Console.run(new AniLabel(), 300, 400);
}
public void run() {
for (y = 0; y