Transpiled version (14126L) is out of date.
1 | static SingleComponentPanel lambda0Like jOnDemand(IF0<JComponent> makeComponent) { |
2 | SingleComponentPanel scp = singleComponentPanel(); |
3 | bindToComponent(scp, -> { |
4 | if (!scp.isEmpty()) ret; |
5 | |
6 | try { |
7 | scp.setComponent(makeComponent?!); |
8 | } catch print e { |
9 | scp.setComponent(jscroll(jFastLogView_noWrap(renderStackTrace(e))); |
10 | } |
11 | }, null); |
12 | ret scp; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034024 |
Snippet name: | jOnDemand - generate component only when shown - computes in AWT thread |
Eternal ID of this version: | #1034024/5 |
Text MD5: | 52562881a434bfacead2179acafa5b89 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-15 21:21:15 |
Source code size: | 387 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 198 / 290 |
Version history: | 4 change(s) |
Referenced in: | [show references] |