Media Section Index | Page 8
Java provides no support for increasing or decreasing the volume of the user's computer. Your users would need to use the controls native to their computers to change the volume.
The Toolkit class contains a beep() method for this purpose: Toolkit.getDefaultToolkit().beep(); or, if in a Component subclass: getToolkit().beep(); more
The short answer is no. The libraries are part of the standard Java 2 platform release (starting with version 1.2). Since they modify core classes in the java.awt.* libraries, you can not pull the...more
Starting with the 1.2 release of Java, you can use the newAudioClip() method of Applet to get an AudioClip to play in an application. File file = new File("bark.wav"); AudioClip clip = Applet.new...more