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

4
LINES

< > BotCompany Repo | #1016113 // doNothingOnClose - disable normal closing

JavaX fragment (include)

1  
static <A extends JFrame> A doNothingOnClose(final A w) {
2  
  if (w != null) swing { w.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); }
3  
  ret w;
4  
}

Author comment

Began life as a copy of #1016007

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: #1016113
Snippet name: doNothingOnClose - disable normal closing
Eternal ID of this version: #1016113/3
Text MD5: 8d04e1a8453a8a2c95fa7b4b2a453c47
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-06 14:07:15
Source code size: 154 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 373
Version history: 2 change(s)
Referenced in: [show references]