Libraryless. Click here for Pure Java version (11415L/64K).
1 | static SingleComponentPanel jReloadEvery(double interval, IF0<JComponent> makeComponent) { |
2 | SingleComponentPanel scp = singleComponentPanel(); |
3 | if (makeComponent != null) |
4 | awtEveryAndNow(scp, interval, -> scp.setComponent(makeComponent!)); |
5 | ret scp; |
6 | } |
Began life as a copy of #1034024
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036374 |
Snippet name: | jReloadEvery - recreate component regularly |
Eternal ID of this version: | #1036374/1 |
Text MD5: | 4d5e1ec0a7d5283d489ffd874d9d622c |
Transpilation MD5: | 34b825f735280dfdcb2094920e99f421 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-28 20:22:12 |
Source code size: | 262 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 120 / 167 |
Referenced in: | [show references] |