Libraryless. Click here for Pure Java version (5224L/29K).
static L<Container> parents(Component c) swing { reMutable c; new L<Container> l; Container parent; while ((parent = getParent(c)) != null) { l.add(parent); c = parent; } ret l; }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034761 |
Snippet name: | parents |
Eternal ID of this version: | #1034761/1 |
Text MD5: | 4a05e8acd4bb5d9054253363a3136a0e |
Transpilation MD5: | 144e01eabdc9e2b49ba240caf3cac084 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-08 05:46:17 |
Source code size: | 208 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 125 / 190 |
Referenced in: | [show references] |