Before I could complete the "Message Box" class, I needed to figure out how to play audio files. That way, I could insert the "chord" sound that Windows generally uses with its dialog boxes. However, things were getting too complex. So, I started a separate program called Sound Demo to teach myself how to play these files. One thing I learned is that they need to be .au files (not .wav) to work properly on the web. Thus, a substantial amount of quality is lost in the conversion; stereo becomes mono and the 21kHz sampling rate is downgraded to 8 kHz. Also, Java sometimes causes the audio to skip as it is playing a file. Thus, I guess it's safe to say that sound is not Java's forte. Recently, I modified this program so that it can work as both an applet and an application. Completely different classes, methods, and techniques are used to get the audio files to play properly both ways. After some trial and error, I came up with the code shown in the links below. Note: Sun Microsystems does not support sun.* packages and they are not included in the Java API; however, I used them anyway because there are currently no other means of accomplishing this task.