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

7
LINES

< > BotCompany Repo | #1036475 // toJComponent

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

Libraryless. Click here for Pure Java version (42L/1K).

static <A extends JComponent> A toJComponent(A c) {
  ret c;
}

static JComponent toJComponent(Swingable c) {
  ret c?.visualize();
}

Author comment

Began life as a copy of #1035178

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036475
Snippet name: toJComponent
Eternal ID of this version: #1036475/1
Text MD5: 665be31c1f0fb69d44b01c8218a44641
Transpilation MD5: 9fb74d8fe4366d747632078345e31042
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-17 15:00:43
Source code size: 139 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 135 / 185
Referenced in: [show references]