Libraryless. Click here for Pure Java version (40L/1K).
static <A extends Component> A toComponent(A c) { ret c; } static Component toComponent(Swingable c) { ret c?.visualize(); }
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: | 168 / 236 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036475 - toJComponent |