!7 module MarkImage > DynImageSurface { File file; transient JTable table; start { ownResource(onClipboardFile(voidfunc(final File f) { if (!isImageFile(f)) ret; setField(file := f); setImage(loadImage2(file)); })); } visualize { ret withCenteredButtons(jvsplit(super.visualize(), jSection("Marked things", table = sexyTable())), jHelpIcon("Copy an image to the clipboard to mark it here")); } }