!7 module FontPlus > DynSingleFunctionWithPrintLog { transient volatile bool active; start { ownResource(vmBus_onMessage('mouseDown, voidfunc(int x, int y, int button) { if (!active) ret; active = false; final JComponent c = optCast(JComponent, componentAtScreenLocation(x, y)); print("Have component: " + c); if (c == null) ret; swing { c.setFont(c.getFont()); } })); } void doIt { print("Please click on a component to enlarge its font"); set active; } }