!7 module MarkEyebrows > DynImageSurface { transient JTextField tfState; // State of the eyebrows! start { ownResource(onClipboardImage(voidfunc(final BufferedImage img) { setImage(img); dm_enableAllButtons(); })); } visualize { ret withCenteredButtons(super.visualize(), tfState = jMinWidth(100, jTextField("normal")), jDisabledButton("Save marked eyebrows", rThread { ai_saveMarkedEyebrows(getImage(), getSelection(), gtt(tfState)) } ), jHelpIcon("Copy an image to the clipboard to mark it here"), ); } }