FileDocCategorySizeDatePackage
AppletThreadLister.javaAPI DocExample1018Sat Jun 02 03:13:10 BST 2001None

AppletThreadLister

public class AppletThreadLister extends Applet

Fields Summary
TextArea
textarea
Constructors Summary
Methods Summary
public voidinit()

        textarea = new TextArea(20, 60);
        this.add(textarea);
        Dimension prefsize = textarea.preferredSize();
        this.resize(prefsize.width, prefsize.height);
    
public voidstart()

        ByteArrayOutputStream os = new ByteArrayOutputStream();
        PrintStream ps = new PrintStream(os);
        ThreadLister.listAllThreads(ps);
        textarea.setText(os.toString());