Libraryless. Click here for Pure Java version (4721L/26K).
1 | svoid addMouseAdapter(Component c, MouseAdapter a) { |
2 | if (c != null && a != null) swing { |
3 | c.addMouseListener(a); |
4 | c.addMouseMotionListener(a); |
5 | } |
6 | } |
Began life as a copy of #1033464
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034107 |
Snippet name: | addMouseAdapter |
Eternal ID of this version: | #1034107/1 |
Text MD5: | e605945766cea65c292b09acf898343d |
Transpilation MD5: | 1347b2173360511f26a7faa6c25a2af9 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-22 16:43:36 |
Source code size: | 161 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 159 / 236 |
Referenced in: | [show references] |