I want to create a directory selector in Java, but when doing this using the JFileChooser and set it to DIRECTORIES-ONLY
, you get an unclear layout of the folders (just a normal FileChooser layout). For folders however I think its more useful to show a filetree showing all directories with the main disk as root, like a normal windows filechooser (see this post, this guy wants to do the same thing but not in Java).
Is there some way to do this without writing it myself (preferably not with external libraries)?