File explorer java
问题 I'd like to have some kind of file browser like Windows Explorer inside a Java Application. I just want something that's able to list file inside a folder recursively. Is there a simple way to do this ? I already tried to use JFileChooser but it's not what I want. 回答1: This snippet allows you to list all files recursivly. You could use the data to populate a JTree see this tutorial public class Filewalker { public void walk( String path ) { File root = new File( path ); File[] list = root