!7 compact module AutoGoogleImage > DynImageSurface { transient S text; enhanceFrame { minFrameSize(f, 300, 300); } visualize { ret northAndCenter(dm_textFieldAndSubmit('text, rThread { show(text) }, buttonText := "Visualize"), 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); } }