FileDocCategorySizeDatePackage
RedirectApplet.javaAPI DocExample592Sun Mar 28 19:05:28 BST 1999None

RedirectApplet

public class RedirectApplet extends Applet

Fields Summary
TextField
result
Constructors Summary
Methods Summary
public voidinit()


     
  
    this.setLayout(new BorderLayout());
    this.add("Center", result);
  
  
public voidstart()

  
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    PrintStream ps = new PrintStream(out);
    try {
      System.setOut(ps);
      System.out.println("OK");
      result.setText("OK");
    }
    catch (Exception e) {
      result.setText(e.toString());
    }