public void setFormat ( VideoFormat selectedFormat )
    {
        if ( formatControl != null )
        {
            // player.stop();       // not needed and big performance hit

            currentFormat = selectedFormat;

            if ( visualComponent != null )
            {
                 visualContainer.remove ( visualComponent );
            }

            imageSize = currentFormat.getSize();
            visualContainer.setPreferredSize ( imageSize );

            statusBar.setText ( "Format : " + currentFormat );

            System.out.println ("Format : " + currentFormat );


            formatControl.setFormat ( currentFormat );

            // player.start();  // not needed and big performance hit

            visualComponent = player.getVisualComponent();
            if ( visualComponent != null )
            {
                visualContainer.add ( visualComponent, BorderLayout.CENTER );
            }

            invalidate();       // let the layout manager work out the sizes
            pack();
        }
        else
        {
            System.out.println ("Visual component not an instance of FormatControl");
            statusBar.setText ( "Visual component cannot change format" );
        }
    }