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).

static <A extends JComponent> A onClickDisposeWindow(A c) {
  ret onClick(c, r { disposeWindow(c) });
}

// re-interpreted for buttons
static void onClickDisposeWindow(JButton btn) {
  onEnter(btn, r { disposeWindow(btn) });
}

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: 145 / 195
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)