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

10
LINES

< > BotCompany Repo | #1018605 // onMouseUp (left button only)

JavaX fragment (include)

1  
static void onMouseUp(final Component c, fO r) {
2  
  if (c != null) swing {
3  
    c.addMouseListener(new MouseAdapter {
4  
      public void mouseReleased(MouseEvent e) {
5  
        if (e.getButton() == MouseEvent.BUTTON1)
6  
          pcallF(r);
7  
      }
8  
    });
9  
  }
10  
}

Author comment

Began life as a copy of #1018604

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018605
Snippet name: onMouseUp (left button only)
Eternal ID of this version: #1018605/1
Text MD5: 35af7656fc027ca922b7927e1679b4ae
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-07 16:00:58
Source code size: 264 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 232 / 280
Referenced in: [show references]