Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

20
LINES

< > BotCompany Repo | #1009916 // Swing: Diff two snippets

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 3874K of libraries. Click here for Pure Java version (7233L/49K/183K).

!7

static S snippetID1, snippetID2, diff;
static int contextSize = 1;
static volatile O graphicalDiff;

p-noconsole {
  thread { graphicalDiff = hotwire(#1004311); }
  final JTextField tf1 = jtextfield("#");
  final JTextField tf2 = jtextfield("#");
  showFormTitled("Diff two snippets",
    "Snippet 1", tf1,
    "Snippet 2", tf2,
    r-thread {
      while (graphicalDiff == null) sleep(10);
      setAll(graphicalDiff, text1 := loadSnippet(getTextTrim(tf1)),
        text2 := loadSnippet(getTextTrim(tf2)));
      callMain(graphicalDiff);
    });
}

Author comment

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: 397 / 463
Version history: 4 change(s)
Referenced in: