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

18
LINES

< > BotCompany Repo | #1006110 // awtCalcOnConceptChanges - it triggers reliably through special logic

JavaX fragment (include)

static void awtCalcOnConceptChanges(JComponent component, int delay, final O runnable, final bool runOnFirstTime) {
  awtCalcOnConceptChanges(component, delay, 0, runnable, runOnFirstTime);
}

static void awtCalcOnConceptChanges(JComponent component, int delay, int firstDelay, final O runnable, final bool runOnFirstTime) {
  installTimer(component, delay, firstDelay, new Runnable {
    long c = runOnFirstTime ? -1 : changeCount();
    new SingleThread thread;
    
    public void run() {
      long _c = changeCount();
      if (_c != c && !thread.running()) {
        c = _c;
        thread.go(runnable);
      }
    }
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006110
Snippet name: awtCalcOnConceptChanges - it triggers reliably through special logic
Eternal ID of this version: #1006110/3
Text MD5: ef8c225c7192c2c2e63e9d20984966ec
Author: stefan
Category: javax / concepts / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-23 13:54:59
Source code size: 649 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 512 / 549
Version history: 2 change(s)
Referenced in: [show references]