Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am trying to build a mp3 player in java.
I am using Jlayer library for this but when i play a song it does not stops until song finish.Every thing in frame just hangs no other button click event work even window listener doesn't work.
I am unable to solve problem please help.
I am using AdvancedPlayer to play song & method ap.play();
Thank you.
Posted
Comments
Sandeep Mewara 15-Jan-13 13:15pm    
People can suggest and put you in right direction if you share what you have tried so far.

1 solution

You should learn about Threads[^].

You are most likely blocking your GUI Thread with the playing song.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900