There’s a component called Jfilechooser which enables file selection of the file system, through a window that opens, returned the path of that file, as can be seen in the image below:
[
Jtree can also be used for navigation, although the appearance is somewhat strange and probably does not return anything like the previously mentioned component. Your appearance is this:
[
For most needs in applications that need to access the current file system, the two components usually serve well, for something more specific and customized, then you need to study the API and create by own or customize the JFileChooser
.