Rosewell
asked on
How to play a music in Java?
Hello;
I have a problem about playing a music in my java application w/c is in a JFrame, can anyone help me play and add some more functionality on my application, thanks and Good luck guys !.
I have a problem about playing a music in my java application w/c is in a JFrame, can anyone help me play and add some more functionality on my application, thanks and Good luck guys !.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>clip1 = Applet.newAudioClip(url1);
Essentially the same code as i've already posted.
Essentially the same code as i've already posted.
!? Please explain Rosewell...
ASKER
Thanks CEHJ;
but you know what I'm asking is more functionality, so may be your code is right but you know I'm not that good in Java programming that's why I choose Javatm's Answer, thanks again . . .
but you know what I'm asking is more functionality, so may be your code is right but you know I'm not that good in Java programming that's why I choose Javatm's Answer, thanks again . . .
Fair enough then!
ASKER
and also he provided me a stop and play action for a music file that's why I choose his answer.
File file = new File("bark.wav");
AudioClip clip = Applet.newAudioClip(file.t
clip.play();