1 | static void onSingleLeftClick(JComponent c, final O runnable) { |
2 | c.addMouseListener(new MouseAdapter { |
3 | public void mouseClicked(MouseEvent e) { |
4 | if (e.getButton() == 1 && e.getClickCount() == 1) |
5 | pcallF(runnable, e); |
6 | } |
7 | }); |
8 | } |
Began life as a copy of #1006660
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: | #1007224 |
Snippet name: | onSingleLeftClick |
Eternal ID of this version: | #1007224/3 |
Text MD5: | 92a471366deb3ee37802972452a2425a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-12 15:17:34 |
Source code size: | 254 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 601 / 618 |
Version history: | 2 change(s) |
Referenced in: | [show references] |