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

8
LINES

< > BotCompany Repo | #1032088 // onClickDisposeWindow

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

Libraryless. Click here for Pure Java version (3900L/22K).

1  
static <A extends JComponent> A onClickDisposeWindow(A c) {
2  
  ret onClick(c, r { disposeWindow(c) });
3  
}
4  
5  
// re-interpreted for buttons
6  
static void onClickDisposeWindow(JButton btn) {
7  
  onEnter(btn, r { disposeWindow(btn) });
8  
}

Author comment

Began life as a copy of #1005614

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032088
Snippet name: onClickDisposeWindow
Eternal ID of this version: #1032088/3
Text MD5: c5eefac39f53834a70f00eda2ca35df7
Transpilation MD5: 8c5fbdcfc3206704b7e42dfc1a2004ce
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 14:01:34
Source code size: 233 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 144 / 195
Version history: 2 change(s)
Referenced in: [show references]