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

6
LINES

< > BotCompany Repo | #1033466 // addMouseAndMotionListener

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7863L/44K).

svoid addMouseAndMotionListener(Component c, MouseAdapter ma) {
  if (c != null && ma != null) swing {
    c.addMouseListener(ma);
    c.addMouseMotionListener(ma);
  }
}

Author comment

Began life as a copy of #1020260

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033466
Snippet name: addMouseAndMotionListener
Eternal ID of this version: #1033466/3
Text MD5: 33e285108e1504a5e2a734fc692fc314
Transpilation MD5: c96eba10488037e8b1917f2dcbe260d8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-21 03:00:18
Source code size: 175 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 267
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)