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

5
LINES

< > BotCompany Repo | #1020595 // jDirectoryTree

JavaX fragment (include)

1  
static JTree jDirectoryTree(File dir) {
2  
  final JTree tree = jDynamicTree(dir, func(File d) -> L<File> { sortFilesAlphaNumIC(listDirs(d)) });
3  
  swing { tree.setCellRenderer(customToStringTreeCellRenderer(func(File f) -> S { fileName(f) })); }
4  
  ret tree;
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020595
Snippet name: jDirectoryTree
Eternal ID of this version: #1020595/3
Text MD5: 1bc3e294ade9083ccaf2564c7a3e348b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-27 21:16:00
Source code size: 260 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 270 / 307
Version history: 2 change(s)
Referenced in: [show references]