The AppletContext class in the java.applet package contains the two member functions getApplet and getApplets. By using those functions, an applet can find other applets and invoke methods on them. That can only be done if the following security requirements are met: i)The applets originate from the same server and from the same directory on the server. ii)The applets are running on the same page and in the same browser window.
Originally posted by Prathiba krishnamurthy:
2. Implementing a runnable interface/extending a thread class. which is better?
When your class which should run in seperate thread needs to extend another class, go for runnable.Otherwise any approach is fine. Before going for extending Thread, make sure that the class need not extend any class in future. [ September 17, 2003: Message edited by: Murthy Narasimha ]