!7 cmodule PhilosophyBotTextArea > DynTextArea { S output; transient PhilosophyBot1 bot; transient ReliableSingleThread rstRunProgram = dm_rst(this, r runProgram); transient JLabel lblStatus; visual jvsplit( jCenteredSection("Program", super), centerAndSouth( jCenteredSection("Output", dm_textArea_scrollDown_readOnly output()), withRightMargin(lblStatus = jRightAlignedLabel()))); start { grabInterval = 1.0; dm_watchFieldAndNow text(rstRunProgram); } void runProgram { temp tempMiniLoadingAnim(); time { setField(output := hijackPrint(r { pcall { bot = new PhilosophyBot1(text); bot.standardImports(); bot.run(); bot.checkExpectations(); } })); } main setText(lblStatus, lastTiming_formatted()); } }