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

8
LINES

< > BotCompany Repo | #1034756 // isGrandChildOf_limitedBy

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

Transpiled version (5221L) is out of date.

1  
sbool isGrandChildOf_limitedBy(Component a, Component b, Component outer) swing {
2  
  if (a == null || b == null) false;
3  
  if (a == b) true;
4  
  reMutable a;
5  
  while (a != outer && (a = getParent(a)) != null)
6  
    if (a == b) true;
7  
  false;
8  
}

Author comment

Began life as a copy of #1033922

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034756
Snippet name: isGrandChildOf_limitedBy
Eternal ID of this version: #1034756/3
Text MD5: 548f49accff188c204c90571cbd9e542
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-08 05:01:58
Source code size: 244 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 106 / 168
Version history: 2 change(s)
Referenced in: [show references]