// TestMyApplet.java //----- to test the class MyApplet in MyApplet.java import java.io.*; import java.applet.*; import java.awt.*; import javax.swing.*; public class TestMyApplet extends MyApplet { public TestMyApplet( ) { print("Hello there"); println(" You!"); print("print 123 in width 5 =="); printf(123, 5); println("=== is it OK?"); AudioClip song = getAudioBoth("images/welcome.wav"); if(song != null) { song.play( ); try { Thread.sleep(1357); } catch(InterruptedException e){;} } } public static void main(String[ ]args) throws IOException{ new TestMyApplet( ); System.exit(0); } }