!7 sclass DiffTwoSnippets > DynModule { S s1, s2; transient JTextArea taDiff; JComponent visualize() { ret northAndCenterWithMargins( centerAndEastWithMarginInbetween(hgrid( withLabel("Snippet 1 (-):", jLiveValueTextField(dm_fieldLiveValue('s1))), withLabel("Snippet 2 (+):", jLiveValueTextField(dm_fieldLiveValue('s2)))), jbuttonWithDisable("Diff!", r go)), taDiff = jTextArea()); } void go { S text1 = loadSnippet(trim(s1)); S text2 = loadSnippet(trim(s2)); setText(taDiff, unidiff(text1, text2)); } }