JFrame 'freeze'

I have created an audio file player that is able to select a file via a JFileChooser, and play it. However when I try to do anything at all whilst the file is playing (like close the frame, or output any information to a JScrollPane) I have to wait until the file has finished playing before I can get a result.

It would appear that the script running the file has to complete before the JFrame updates - what am I missing that causes this? Obviously waiting for the script to return before updating the user about the track playing is not what I intended!

[569 byte] By [Syxa] at [2007-10-2 7:59:12]
# 1
Read the API documentaion for SwingUtilities.invokeLater() method, invokeAndWait() methodand, more importantly, other documentations linked from there.
hiwaa at 2007-7-16 21:50:27 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks very much for the pointers. I'm pretty new to this (only started Java due to a University course in September) so I am grateful for the advice.
Syxa at 2007-7-16 21:50:27 > top of Java-index,Desktop,Core GUI APIs...