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

8
LINES

< > BotCompany Repo | #1021477 // jtree_collapseAndOpenRootNode

JavaX fragment (include)

static JTree jtree_collapseAndOpenRootNode(final JTree tree) {
  if (tree != null) swing {
    TreePath rootPath = new(jDynamicTree_root(tree));
    tree.collapsePath(rootPath);
    tree.expandPath(rootPath);
  }
  ret tree;
}

Author comment

Began life as a copy of #1020600

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021477
Snippet name: jtree_collapseAndOpenRootNode
Eternal ID of this version: #1021477/1
Text MD5: 2678d0ed2235c4e4730e335c247b101f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-14 16:32:58
Source code size: 233 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 275 / 301
Referenced in: [show references]