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

11
LINES

< > BotCompany Repo | #1021845 // onWindowClosed

JavaX fragment (include)

static <A extends Window> A onWindowClosed(final A w, fO r) {
  if (w != null) swing {
    w.addWindowListener(new WindowAdapter {
      public void windowClosed(WindowEvent e) {
        temp tempRememberListener(w, 'removeWindowListener, this);
        pcallF(r);
      }
    });
  }
  ret w;
}

Author comment

Began life as a copy of #1009661

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021845
Snippet name: onWindowClosed
Eternal ID of this version: #1021845/1
Text MD5: c43064919b4e307dcc5cb7fcf11342e0
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-02 13:28:14
Source code size: 305 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 195
Referenced in: [show references]