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

8
LINES

< > BotCompany Repo | #1016597 // lookupSwingAncestor

JavaX fragment (include)

static <A> A lookupSwingAncestor(Map<Component, A> map, Component c) {
  while (c != null) {
    A a = map.get(c);
    if (a != null) ret a;
    c = getParent(c);
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016597
Snippet name: lookupSwingAncestor
Eternal ID of this version: #1016597/2
Text MD5: a5b61aa2c6f98c2e17fc644b1548c28b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 17:31:03
Source code size: 183 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 309
Version history: 1 change(s)
Referenced in: [show references]