1 | static <A extends Component> A onBoundsChange(A c, fO r) { |
2 | if (c != null && r != null) swing { |
3 | c.addComponentListener(new ComponentAdapter { |
4 | public void componentResized(ComponentEvent e) { pcallF(r); } |
5 | public void componentMoved(ComponentEvent e) { pcallF(r); } |
6 | }); |
7 | } |
8 | ret c; |
9 | } |
10 | |
11 | static <A extends Component> A onBoundsChange(O r, A c) { |
12 | ret onBoundsChange(c, r); |
13 | } |
Began life as a copy of #1007285
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026604 |
Snippet name: | onBoundsChange |
Eternal ID of this version: | #1026604/1 |
Text MD5: | d265580745860c8787c0a38572e56d7b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-15 18:50:01 |
Source code size: | 404 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 258 / 288 |
Referenced in: | [show references] |