Libraryless. Click here for Pure Java version (3621L/20K).
svoid addMouseListener_inFront(JComponent c, MouseListener listener) { if (c == null || listener == null) ret; swing { var otherListeners = c.getListeners(MouseListener.class); fOr (MouseListener l : otherListeners) c.removeMouseListener(l); c.addMouseListener(listener); fOr (MouseListener l : otherListeners) c.addMouseListener(l); } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032112 |
Snippet name: | addMouseListener_inFront - add MouseListener in front of listeners list |
Eternal ID of this version: | #1032112/1 |
Text MD5: | 26fc2ab98d979aa7ac1a7030a196e638 |
Transpilation MD5: | 049425e591caf14e285811d4085b6406 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-13 23:41:56 |
Source code size: | 381 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 149 / 217 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1032114 - addAWTEventListener_inFront - add global AWT listener in front of all others |