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.

sbool isGrandChildOf_limitedBy(Component a, Component b, Component outer) swing {
  if (a == null || b == null) false;
  if (a == b) true;
  reMutable a;
  while (a != outer && (a = getParent(a)) != null)
    if (a == b) true;
  false;
}

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: 51 / 86
Version history: 2 change(s)
Referenced in: [show references]