Libraryless. Click here for Pure Java version (42L/1K).
1 | static <A extends JComponent> A toJComponent(A c) { |
2 | ret c; |
3 | } |
4 | |
5 | static JComponent toJComponent(Swingable c) { |
6 | ret c?.visualize(); |
7 | } |
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: | 137 / 188 |
Referenced in: | [show references] |