Libraryless. Click here for Pure Java version (7863L/44K).
1 | svoid addMouseAndMotionListener(Component c, MouseAdapter ma) { |
2 | if (c != null && ma != null) swing { |
3 | c.addMouseListener(ma); |
4 | c.addMouseMotionListener(ma); |
5 | } |
6 | } |
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: | 202 / 265 |
Version history: | 2 change(s) |
Referenced in: | [show references] |