static JTree jDirectoryTree(File dir) { final JTree tree = jDynamicTree(dir, func(File d) -> L<File> { sortFilesAlphaNumIC(listDirs(d)) }); swing { tree.setCellRenderer(customToStringTreeCellRenderer(func(File f) -> S { fileName(f) })); } ret tree; }
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: | 271 / 307 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |