Download Jar. Libraryless. Click here for Pure Java version (7817L/52K).
!7 p-type { conceptsToEnglishInfoBox(); for i to 10: print(random(keys(aiConceptsMap_cached()))); } static Window conceptsToEnglishInfoBox_box; svoid conceptsToEnglishInfoBox { thread "Info Box" { Window infoBox = null; S lastMsg = ""; repeat with ms sleep 500 { Component c = componentAtMouse(); S word = wordAtMouse(), msg = ""; if (possibleGlobalID(word)) { aiConceptsMap_clearCache(60); // clear cache every 60 seconds S name = conceptToName(word); if (neq(name, word)) msg = word + ": " + name; } if (neq(msg, lastMsg)) { lastMsg = msg; disposeWindow(infoBox); infoBox = null; if (nempty(msg)) { infoBox = infoMessage_noprint(msg); if (c instanceof JComponent) setToolTipText((JComponent) c, msg); } } } } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007437 | 
| Snippet name: | Test conceptsToEnglishInfoBox | 
| Eternal ID of this version: | #1007437/14 | 
| Text MD5: | ce9b3cb8bba4b5785f7d7d7ef86927b4 | 
| Transpilation MD5: | af0b2fe10275bd5a3cff123599736443 | 
| Author: | stefan | 
| Category: | javax / gui | 
| Type: | JavaX source code (desktop) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-03-23 14:23:56 | 
| Source code size: | 920 bytes / 36 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 1116 / 2182 | 
| Version history: | 13 change(s) | 
| Referenced in: | [show references] |