Hello, I have a question about JFileChooser. I want it to open the window in the current directory. In the api I see that I can use.

JFileChooser(File currentDirectory)
Constructs a JFileChooser using the given File as the path.

But I am not so familiar with the File class. How to I make the currentDirectory file? I am not able to find this out.