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

11
LINES

< > BotCompany Repo | #1021845 // onWindowClosed

JavaX fragment (include)

1  
static <A extends Window> A onWindowClosed(final A w, fO r) {
2  
  if (w != null) swing {
3  
    w.addWindowListener(new WindowAdapter {
4  
      public void windowClosed(WindowEvent e) {
5  
        temp tempRememberListener(w, 'removeWindowListener, this);
6  
        pcallF(r);
7  
      }
8  
    });
9  
  }
10  
  ret w;
11  
}

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: 287 / 326
Referenced in: [show references]