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

9
LINES

< > BotCompany Repo | #1008237 // replaceComponent - synonym of awtReplaceComponent

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

Libraryless. Click here for Pure Java version (4852L/27K).

// makeNewComponent: func(Component) -> Component
//                   or Component
static Component replaceComponent(Component c, O makeNewComponent) {
  ret awtReplaceComponent(c, makeNewComponent);
}

static Component replaceComponent(Component c, IF0<Component> makeNewComponent) {
  ret awtReplaceComponent(c, if0ToIF1(makeNewComponent));
}

Author comment

Began life as a copy of #1007748

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008237
Snippet name: replaceComponent - synonym of awtReplaceComponent
Eternal ID of this version: #1008237/4
Text MD5: f1964a85861c536137f73f8ad739fa51
Transpilation MD5: 5d6d4ae719b2eb618d648001fec7c466
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-25 19:38:08
Source code size: 353 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 468 / 570
Version history: 3 change(s)
Referenced in: [show references]