import java.awt.*; import java.applet.Applet; import java.io.*; import java.net.*; public class leggi extends Applet { TextArea textArea; public void init () { URL TextURL; // dot = getImage(getCodeBase(), "lista.gif"); textArea = new TextArea(10, 80); textArea.setEditable(false); setBackground (Color.white); try { String inputLine; TextURL = new URL(getCodeBase(), "leggi.java"); DataInputStream dis = new DataInputStream (TextURL.openStream()); while ((inputLine = dis.readLine()) != null) { textArea.appendText (inputLine); textArea.appendText ("\n"); } dis.close (); } catch (Exception e) { e.printStackTrace (); return ; } add (textArea); } }