Libraryless. Click here for Pure Java version (5149L/28K).
1 | static <A extends Window> A onWindowDeiconified(A w, Runnable r) {
|
2 | if (w != null && r != null) swing {
|
3 | w.addWindowListener(new WindowAdapter {
|
4 | public void windowDeiconified(WindowEvent e) {
|
5 | pcall { r.run(); }
|
6 | } |
7 | }); |
8 | } |
9 | ret w; |
10 | } |
Began life as a copy of #1016868
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034205 |
| Snippet name: | onWindowDeiconified |
| Eternal ID of this version: | #1034205/1 |
| Text MD5: | f587d13d023553a182128001d04e2262 |
| Transpilation MD5: | 0771171f404e797d92845c9076e77842 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-28 22:14:21 |
| Source code size: | 268 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 639 / 794 |
| Referenced in: | [show references] |