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

6
LINES

< > BotCompany Repo | #1027347 // componentsInFrontOf

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

Libraryless. Click here for Pure Java version (2416L/15K).

1  
static L<Component> componentsInFrontOf(Component c) {
2  
  Container container = getParent(c);
3  
  L<Component> components = getChildren(container);
4  
  int idx = indexOf(components, c);
5  
  ret takeFirst(components, idx);
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027347
Snippet name: componentsInFrontOf
Eternal ID of this version: #1027347/2
Text MD5: 6efe57039892a87bc5428f260394799e
Transpilation MD5: db3298fd847b29a21dbf7a331d8895f7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-11 11:38:29
Source code size: 221 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 228
Version history: 1 change(s)
Referenced in: [show references]