import java.applet.Applet ; import java.awt.* ; import java.net.* ; public class Exemple5 extends Applet { private Label lb ; private String host ; public void init() { URL url = getDocumentBase() ; host = url.getHost() ; setLayout(new GridLayout(2,1,10,10)); add(lb = new Label("",Label.CENTER)); ThreadExemple5 te5 = new ThreadExemple5(host,lb) ; te5.start() ; } }