player.addControllerListener(this);
StateWaiter waiter = new StateWaiter(player);
// Wait for the Player to realize, then add the components
waiter.blockingRealize();
// Run Swing code on Swing Event thread
Runnable r = new Runnable() {
public void run() {
// Add Control Panel Component