!7 module MarkImage > DynImageSurface { File file; transient JTable table; start { ownResource(onClipboardFile(vf loadFile)); } void loadFile(final File f) enter { if (!isImageFile(f)) ret; setModuleName("Mark Image - " + f2s(f)); setField(file := f); setImage(loadImage2(file)); } visualize { table = sexyTable(); JComponent i = super.visualize(); loadFile(f); ret withCenteredButtons(jvsplit(i, jSection("Marked things", table)), jHelpIcon("Copy an image to the clipboard to mark it here")); } }