import java.awt.*; import java.awt.event.*; import java.applet.*; //jpgアニメーションアプレット "DrawImageVer3.0" by Y.K public class DrawImage extends Applet implements Runnable{ private Image OffImage; private Graphics OffGraphics; private Image img[]=new Image[1000]; private AudioClip ac; private volatile Thread thread=null; private int count=0; private int limit; private int time; private int repeat; private int play; private int width; private int height; private String imgtype; private String audio; public void init(){ //マウスクリックイベントを用意 addMouseListener(new MouseAdapter(){ public void mousePressed(MouseEvent e){ if(thread==null){ count=0; new_Thread(); thread.start(); } } }); //アプレットパラメータから初期設定情報をゲットする limit=Integer.parseInt(getParameter("elementsOfImage")); time=Integer.parseInt(getParameter("intervalToChange")); width=Integer.parseInt(getParameter("width")); height=Integer.parseInt(getParameter("height")); repeat=Integer.parseInt(getParameter("repeat")); play=Integer.parseInt(getParameter("Play")); imgtype="."+getParameter("imgtype"); if(play!=0) audio="Audio."+getParameter("audiotype"); for(int i=0;i