I can not find the error when I run it.
Are you running it as an application? or with a browser?
Open the java console before you open it with the browser, and click "l" and "5" keys to change log mode.
Load applet into browser and find out the message shown.