Your java control panel needs to first allow java content to be shown; as well as needing security level at 'High' (not 'Very High') and 'http://www.greenfoot.org/' needs to be added to the 'Exception Sites' list. All these setting are in the 'Security' tab of the java control panel.