1 | svoid onFirstResize(Component c, O r) { |
2 | onFirstResize(c, toRunnable(r)); |
3 | } |
4 | |
5 | svoid onFirstResize(Component c, Runnable r) { |
6 | if (c != null && r != null) swing { |
7 | c.addComponentListener(new ComponentAdapter { |
8 | public void componentResized(ComponentEvent e) { |
9 | c.removeComponentListener(this); |
10 | pcallF(r); |
11 | } |
12 | }); |
13 | } |
14 | } |
Began life as a copy of #1007285
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019425 |
Snippet name: | onFirstResize |
Eternal ID of this version: | #1019425/5 |
Text MD5: | 9dd1e31a48b6e0d0cb5f24759b2ec9b2 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-22 21:01:42 |
Source code size: | 362 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 452 |
Version history: | 4 change(s) |
Referenced in: | [show references] |