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

10
LINES

< > BotCompany Repo | #1019906 // addMouseListener

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

Libraryless. Click here for Pure Java version (4719L/26K).

1  
svoid addMouseListener(Container c, MouseListener l) {
2  
  if (c != null && l != null) swing {
3  
    c.addMouseListener(l);
4  
  }
5  
}
6  
7  
// binary compatibility
8  
svoid addMouseListener(JComponent c, MouseListener l) {
9  
  addMouseListener((Container) c, l);
10  
}

Author comment

Began life as a copy of #1015949

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019906
Snippet name: addMouseListener
Eternal ID of this version: #1019906/4
Text MD5: 297f2e6ae7fb773d820aa026fd048638
Transpilation MD5: e8d9e3ae8962793e3586b649e616d15e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-15 03:45:05
Source code size: 255 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 317 / 377
Version history: 3 change(s)
Referenced in: [show references]