Uses 3874K of libraries. Click here for Pure Java version (7233L/49K/183K).
| 1 | !7 | 
| 2 | |
| 3 | static S snippetID1, snippetID2, diff; | 
| 4 | static int contextSize = 1; | 
| 5 | static volatile O graphicalDiff; | 
| 6 | |
| 7 | p-noconsole {
 | 
| 8 |   thread { graphicalDiff = hotwire(#1004311); }
 | 
| 9 |   final JTextField tf1 = jtextfield("#");
 | 
| 10 |   final JTextField tf2 = jtextfield("#");
 | 
| 11 |   showFormTitled("Diff two snippets",
 | 
| 12 | "Snippet 1", tf1, | 
| 13 | "Snippet 2", tf2, | 
| 14 |     r-thread {
 | 
| 15 | while (graphicalDiff == null) sleep(10); | 
| 16 | setAll(graphicalDiff, text1 := loadSnippet(getTextTrim(tf1)), | 
| 17 | text2 := loadSnippet(getTextTrim(tf2))); | 
| 18 | callMain(graphicalDiff); | 
| 19 | }); | 
| 20 | } | 
Began life as a copy of #1000996
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009916 | 
| Snippet name: | Swing: Diff two snippets | 
| Eternal ID of this version: | #1009916/5 | 
| Text MD5: | e451173a99dbe026d8adf0953788075f | 
| Transpilation MD5: | 4be17f41ad48034a6445ce56035dc470 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX source code | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-05-02 09:35:58 | 
| Source code size: | 573 bytes / 20 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 740 / 893 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |