FileDocCategorySizeDatePackage
RelativeURLTest.javaAPI DocExample502Sun Dec 12 10:52:16 GMT 2004None

RelativeURLTest

public class RelativeURLTest extends Applet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

  
    try {        
      URL base = this.getDocumentBase();
      URL relative = new URL(base, "mailinglists.html");
      this.setLayout(new GridLayout(2,1));
      this.add(new Label(base.toString()));
      this.add(new Label(relative.toString()));
    }
    catch (MalformedURLException ex) {
      this.add(new Label("This shouldn't happen!"));
    }