static <A extends JFrame> A doNothingOnClose(final A w) { if (w != null) swing { w.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); } ret w; }
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: | 404 / 452 |
Version history: | 2 change(s) |
Referenced in: | [show references] |