!7 compact module AutoGoogleImage > DynImageSurface { transient JTextField tf; transient S text; enhanceFrame { minFrameSize(f, 300, 300); } visualize { tf = jcenteredtextfield(); onEnter(tf, r { show(gtt(tf)) }); ret northAndCenter(tf, centerAndSouth(super.visualize(), centeredLiveValueLabel(dm_fieldLiveValue('text)))); } // API void show(S query) q { BufferedImage img = quickVisualize(query); if (img == null) ret; setImage(img); setField(text := query); } }