FileDocCategorySizeDatePackage
HelloApplet.javaAPI DocExample2126Sat Sep 12 03:01:00 BST 1998examples.hello

HelloApplet

public class HelloApplet extends Applet

Fields Summary
String
message
Constructors Summary
Methods Summary
public voidinit()


       

    try {
	Hello obj = (Hello)
	    Naming.lookup("//" + getCodeBase().getHost() + "/HelloServer");
	message = obj.sayHello();

	} catch (Exception e) {
	    System.out.println("HelloApplet: an exception occurred:");
	    e.printStackTrace();
	}
    
public voidpaint(java.awt.Graphics g)

	g.drawString(message, 25, 50);