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

8
LINES

< > BotCompany Repo | #1007224 // onSingleLeftClick

JavaX fragment (include)

static void onSingleLeftClick(JComponent c, final O runnable) {
  c.addMouseListener(new MouseAdapter {
    public void mouseClicked(MouseEvent e) {
      if (e.getButton() == 1 && e.getClickCount() == 1)
        pcallF(runnable, e);
    }
  });
}

Author comment

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: 599 / 615
Version history: 2 change(s)
Referenced in: [show references]