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

10
LINES

< > BotCompany Repo | #1034761 // parents

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

Libraryless. Click here for Pure Java version (5224L/29K).

1  
static L<Container> parents(Component c) swing {
2  
  reMutable c;
3  
  new L<Container> l;
4  
  Container parent;
5  
  while ((parent = getParent(c)) != null) {
6  
    l.add(parent);
7  
    c = parent;
8  
  }
9  
  ret l;
10  
}

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: 126 / 191
Referenced in: [show references]