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

7
LINES

< > BotCompany Repo | #1035178 // toComponent

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

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

1  
static <A extends Component> A toComponent(A c) {
2  
  ret c;
3  
}
4  
5  
static Component toComponent(Swingable c) {
6  
  ret c?.visualize();
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035178
Snippet name: toComponent
Eternal ID of this version: #1035178/2
Text MD5: 19d6b3ea6da3329223a43915002dca82
Transpilation MD5: 3bc11d251a989b4d3ffb07bcc547b3a2
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-05 18:38:29
Source code size: 135 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 237
Version history: 1 change(s)
Referenced in: [show references]