Hi,
You've to add a FocusListener to the button and implement to methods focusGained() and focusLost(). In these method you've to write code to play audio, for this you have to use Java Media Frame work you can get an example at the following link
http://edenti.deis.unibo.it/utils/Ja...0Framework.txt
If you want to change image on the button on mouse over then JButton class supports it you dont need to write any code for this, just go through the API.
Regards,
Rakesh
- Rakesh