FileDocCategorySizeDatePackage
AppletThreadLister.javaAPI DocExample990Fri Feb 16 13:29:44 GMT 1996None

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());