// // MyTutorial.java // MyTutorial // // Created by Maree Kuulma on 13/08/13. // Copyright (c) 2013 __MyCompanyName__. All rights reserved. // // A simple signed Java applet // import java.awt.*; import java.applet.*; import javax.swing.*; public class MyTutorial extends Applet implements Runnable { int i, num = 19; Thread mover = null; Image[] photos = new Image[num]; AudioClip backing; int curone = 0; String prefix = "RubyDesktopApplication-"; public void init() { String fname; for (int ii=0; ii num) curone = 0; repaint(); try { Thread.sleep(1000); } catch (InterruptedException ex) { } } } public void paint (Graphics g) { super.paint(g); g.drawImage(photos[curone],100,100,this); } }