I have a big problem over here i tried a million ways of doing this but nothing helps, here are the links i tried to make this...
https://www.youtube.com/watch?v=nUKya2DvYSo
How can I play sound in Java?
http://forum.codecall.net/topic/58228-playing-simple-sampled-audio-in-java/
http://www.anyexample.com/programming/java/java_play_wav_sound_file.xml
there are just some links that are still opened in the browser but never mind.. i'm making this in NetBeans and i really cannot figure out how should i do this please help me. Here is the class i want to make this and also the button.. if you can make it for me i will be very happy
public class Machines extends javax.swing.JFrame {
public Machines() {
initComponents();
}
private void spinBtnActionPerformed(java.awt.event.ActionEvent evt) {
}
also the music file is spinsound.wav
and i have placed in the directory where is my project here is the link C:\Users\MONSTER\Desktop\STEFAN\NetBeansProjects\PasswordSaver\spinsound.wav