I'm currently programming my own audio player.
I'm using audio input stream and line to read and write wav files.

I'm also using Swing ask my program frames.
For starting the line and stream i used a normal actionlistener on a Jbutton.

But once i click on the button, i can't press any other buttons while the audio is streaming. I would like to click on my stop button to stop the audio from playing.
Why can't i press any other buttons and how do i overcome it?

I won't mind showing my source code if u PM me.

Thank you for your help, much appreciated