FileDocCategorySizeDatePackage
PlaySound.javaAPI DocExample523Mon Oct 16 19:44:04 BST 2000None

PlaySound

public class PlaySound extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

  URL url = new URL( "file:" + System.getProperty( "user.dir" )
								+ System.getProperty( "file.separator" ) + args[0] );
		System.out.println( "Playing : " + url );
		AudioClip au = Applet.newAudioClip( url );
      au.play();

		Thread.sleep(10000);