static S wordAtMouse() { ret (S) swing(func { Component c = (Component) componentAtMouse_gen(); if (c instanceof JTextComponent) { JTextComponent tc = cast c; Point d = mouseToComponent(c); int idx = tc.viewToModel(d); S text = tc.getText(); ret wordAroundIndex(text, idx); } ret ""; }); }
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: | #1007432 | 
| Snippet name: | wordAtMouse (current VM only) | 
| Eternal ID of this version: | #1007432/3 | 
| Text MD5: | 96cbd39b0175b82863a3f0cbde323139 | 
| Author: | stefan | 
| Category: | javax / gui | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-04-29 15:15:09 | 
| Source code size: | 351 bytes / 13 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 912 / 919 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |