WorldApplet demonstrates the use of the EAI (External Authoring Interface) in a Java applet to control a model embedded in a VRML plugin on the same web page. Requirements: browser with Java 1.1 support and a VRML plugin that includes support for the EAI.
Input a city name (e.g. "Tokyo", "Moscow", "Helsinki"), press return and (if found) the applet will rotate the world to the city's latitude and longitude. Locations for approximately 400 cities are included. If the city name is not found, the world will reset itself to the original location ("University of Arizona"). Or you may input a latitude and longitude directly, followed by a click on update.
Cities data is loaded from a serialized, gzipped Hashtable in the java archive file (WorldApplet.jar). Using the EAI classes, the applet fetches a reference to the VRML plugin. Event handlers perform operations on the VRML world. Complete source code is in the jar.