!7 // TODO: capture all of System.out/System.err sclass SystemPrintLog extends DynModule { transient StringBuffer log; transient JTextArea ta; void start { log = getCreator('print_log); doEvery(1000, r updateMe); } JComponent visualize() { ret jSection("SYSTEM LOG", ta = moveCaretToEnd(typeWriterTextArea(str(log)))); } void unvisualize() { ta = null; } void update { if (ta != null) setText(ta, str(log)); } }