Libraryless. Click here for Pure Java version (2462L/16K).
| 1 | static AutoCloseable tempOnFrameIconified(Component c, fO r) {
 | 
| 2 |   ret c == null ? null : swing(() -> {
 | 
| 3 | JFrame f = getFrame(c); | 
| 4 | if (f == null) null; | 
| 5 |     WindowListener l = new WindowAdapter {
 | 
| 6 |       public void windowIconified(WindowEvent e) {
 | 
| 7 | temp tempRememberListener(f, 'removeWindowListener, this); | 
| 8 | pcallF(r); | 
| 9 | } | 
| 10 | }; | 
| 11 | f.addWindowListener(l); | 
| 12 |     ret autoCloseable { swing { f.removeWindowListener(l); } };
 | 
| 13 | }); | 
| 14 | } | 
Began life as a copy of #1025643
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: | #1025644 | 
| Snippet name: | tempOnFrameIconified | 
| Eternal ID of this version: | #1025644/4 | 
| Text MD5: | fb314b4a94cfe1e7b02011aa6df353a0 | 
| Transpilation MD5: | b552ca5fba6b438c2da039fd1567ae5b | 
| 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:39:34 | 
| Source code size: | 462 bytes / 14 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 409 / 532 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |