1 | import java.beans.*; |
2 | |
3 | static AutoCloseable awt_onGlobalFocusChange(final VF1<PropertyChangeEvent> f) { |
4 | final KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); |
5 | final PropertyChangeListener listener = new { |
6 | public void propertyChange(PropertyChangeEvent e) { |
7 | if (eq(e.getPropertyName(), "focusOwner")) |
8 | pcallF(f, e); |
9 | } |
10 | }; |
11 | fm.addPropertyChangeListener(listener); |
12 | ret autoCloseable { fm.removePropertyChangeListener(listener); }; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018940 |
Snippet name: | awt_onGlobalFocusChange |
Eternal ID of this version: | #1018940/4 |
Text MD5: | 2895ed4875f9210dcabfdd33f35db0db |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-16 13:42:42 |
Source code size: | 501 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 406 |
Version history: | 3 change(s) |
Referenced in: | [show references] |