Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1036374 // jReloadEvery - recreate component regularly

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (11415L/64K).

static SingleComponentPanel jReloadEvery(double interval, IF0<JComponent> makeComponent) {
  SingleComponentPanel scp = singleComponentPanel();
  if (makeComponent != null)
    awtEveryAndNow(scp, interval, -> scp.setComponent(makeComponent!));
  ret scp;
}

Author comment

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: 121 / 169
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)