static volatile bool framesBot_has; static Android3 framesBot() { if (!framesBot_has) { framesBot_has = true; new Android3 android; android.greeting = programID() + " Frames."; android.console = false; android.responder = new Responder { S answer(S s, L history) { if "activate frames" { awt { // prevent blocking when called from same program's AWT thread activateMyFrames(); } ret "OK, activating frames."; } null; } }; ret makeBot(android); } }