h1. Event handling The iTunes Controller package does implement event handling on all but one of the functions the iTunes COM interface provides. By creating a class that implements the @iTunesEventsInterface@ class, and then using @iTunes.addEventHandler()@ function, you can receive events from the iTunes class, such as when tracks change or if the user pauses playback. However, iTunes will only allow one application to receive COM events at once, and if your application doesn't release its COM Thread iTunes will refuse any more connections until iTunes has been closed and reopened. This is most important with using Swing, which will prevent a COM Thread from closing when the application finishes. I will be attempting to introduce measures to combat this, though for now you may have to use the iTunes class in a seperate thread when using Swing interfaces.