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

7
LINES

< > BotCompany Repo | #1019721 // sameComponentOrDeepChildOf

JavaX fragment (include)

1  
sbool sameComponentOrDeepChildOf(Component a, Component b) {
2  
  do {
3  
    if (a == b) true;
4  
    a = getParent(a);
5  
  } while (a != null);
6  
  false;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019721
Snippet name: sameComponentOrDeepChildOf
Eternal ID of this version: #1019721/1
Text MD5: 00f85a79742e0576c4e908dee8337150
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-23 21:00:13
Source code size: 151 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 335 / 393
Referenced in: [show references]