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

7
LINES

< > BotCompany Repo | #1016007 // onWindowClosingOnly - disable normal closing

JavaX fragment (include)

1  
static <A extends JFrame> A onWindowClosingOnly(final A w, fO r) {
2  
  if (w != null) {
3  
    onWindowClosing(w, r);
4  
    swing { w.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); }
5  
  }
6  
  ret w;
7  
}

Author comment

Began life as a copy of #1009661

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016007
Snippet name: onWindowClosingOnly - disable normal closing
Eternal ID of this version: #1016007/1
Text MD5: f0dd18356dd2e5c0b3c3af110f97b407
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-02 22:08:14
Source code size: 203 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 334
Referenced in: [show references]