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

10
LINES

< > BotCompany Repo | #1034205 // onWindowDeiconified

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5149L/28K).

static <A extends Window> A onWindowDeiconified(A w, Runnable r) {
  if (w != null && r != null) swing {
    w.addWindowListener(new WindowAdapter {
      public void windowDeiconified(WindowEvent e) {
        pcall { r.run(); }
      }
    });
  }
  ret w;
}

Author comment

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: 83 / 126
Referenced in: [show references]