当前位置: 技术问答>java相关
怎样循环显示图片呀?
来源: 互联网 发布时间:2015-08-01
本文导语: 想循环显示五个图片,但是程序执行错误,是什么原因呀? import java.awt.*; import java.util.Vector; /* */ public class banrota extends java.applet.Applet implements Runnable { Vector images; int imgnumber; int currentimage=1; Thread thisthr...
想循环显示五个图片,但是程序执行错误,是什么原因呀?
import java.awt.*;
import java.util.Vector;
/*
*/
public class banrota extends java.applet.Applet implements Runnable
{
Vector images;
int imgnumber;
int currentimage=1;
Thread thisthread;
public void init()
{
imgnumber=new Integer(getParameter("imgnumber")).intValue();
for (int x=0;x
import java.awt.*;
import java.util.Vector;
/*
*/
public class banrota extends java.applet.Applet implements Runnable
{
Vector images;
int imgnumber;
int currentimage=1;
Thread thisthread;
public void init()
{
imgnumber=new Integer(getParameter("imgnumber")).intValue();
for (int x=0;x