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

11
LINES

< > BotCompany Repo | #1009661 - onWindowClosing

JavaX fragment (include)

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

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009661
Snippet name: onWindowClosing
Eternal ID of this version: #1009661/8
Text MD5: 4102e6784404a8cac72c94ddad782e33
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-22 00:56:01
Source code size: 307 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 377 / 396
Version history: 7 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1009661 & http://1009661.tinybrain.de