Libraryless. Click here for Pure Java version (2461L/16K).
1 | static <A extends Component> A onFrameIconified(A c, fO r) { |
2 | if (c != null) swing { |
3 | JFrame f = getFrame(c); |
4 | if (f != null) |
5 | f.addWindowListener(new WindowAdapter { |
6 | public void windowIconified(WindowEvent e) { |
7 | temp tempRememberListener(f, 'removeWindowListener, this); |
8 | pcallF(r); |
9 | } |
10 | }); |
11 | } |
12 | ret c; |
13 | } |
Began life as a copy of #1009661
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025643 |
Snippet name: | onFrameIconified |
Eternal ID of this version: | #1025643/3 |
Text MD5: | 645495b3eeccdb57f82fe3e5fafe76e1 |
Transpilation MD5: | 30918cac7deffb351de9c86d7511edb9 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-11 00:36:20 |
Source code size: | 368 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 289 |
Version history: | 2 change(s) |
Referenced in: | [show references] |