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

7
LINES

< > BotCompany Repo | #1025650 // jTree_hideRoot - hide root node. probably works only after filling tree

JavaX fragment (include)

1  
static JTree jTree_hideRoot(JTree tree) {
2  
  if (tree != null) swing {
3  
    tree.expandRow(0);
4  
    tree.setRootVisible(false);
5  
  }
6  
  ret tree;
7  
}

Author comment

Began life as a copy of #1025649

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025650
Snippet name: jTree_hideRoot - hide root node. probably works only after filling tree
Eternal ID of this version: #1025650/3
Text MD5: 532487e4a1f42fb7b94134f687c8a8f2
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-12 17:52:43
Source code size: 148 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 211
Version history: 2 change(s)
Referenced in: [show references]