I have spent three days to reseach how to test java applet with Selenium. Now it works fine in my computer.
Note :Selenium can test java applet defined public variable and method.
First , Start Selenium server
Second , Run your test scripts