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

10
LINES

< > BotCompany Repo | #1007187 // printComponentTree

JavaX fragment (include)

static <A> void printComponentTree(S indent, Component c) {
  print(indent + c);
  if (c instanceof Container)
    for (Component comp : ((Container) c).getComponents())
      printComponentTree(indent + "  ", comp);
}

static <A> void printComponentTree(Component c) {
  printComponentTree("", c);
}

Author comment

Began life as a copy of #1001636

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007187
Snippet name: printComponentTree
Eternal ID of this version: #1007187/2
Text MD5: cba3f2437325794f5d57cece11e001ce
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-11 14:22:45
Source code size: 311 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 393 / 426
Version history: 1 change(s)
Referenced in: [show references]