It is a method of Applet. If you have a question of what methods
are available in a given class, the very first thing you should do is check the API:
http://java.sun.com/javase/6/docs/api/
Take a look at the code in reply #2: http://forum.java.sun.com/thread.jspa?threadID=5152350