View Single Post
Old Dec 31st, 2005, 12:55 PM   #1
bae
Newbie
 
Join Date: Apr 2005
Posts: 17
Rep Power: 0 bae is on a distinguished road
Implementing Sounds?

How would I implement sounds to my applet along with MouseListeners?

ex. Would this work?

import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.util.*;

public class Selection extends Applet implements ItemListener, MouseListener, MouseMotionListener
{-code-
...
...
}

I basically want sound to play when a user hovers his mouse over an object.



Best regards,
Ben. :banana:
bae is offline   Reply With Quote