public class SoundActionListener
extends java.lang.Object
implements javax.swing.event.HyperlinkListener
Constructor and Description |
---|
SoundActionListener() |
Modifier and Type | Method and Description |
---|---|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkEvent)
When got .wav or *.WAV file, play it.
|
static void |
playSound(java.io.File file)
Play specified file on default device.
|
public static void playSound(java.io.File file)
file
- media file.public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkEvent)
Unknown file types and protocols silently ignored.
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
hyperlinkEvent
- event on editor panes such as dictionary.