steos / jnafilechooser

A Java file chooser API that uses the Windows native dialogs if possible.
BSD 3-Clause "New" or "Revised" License
53 stars 14 forks source link

Set Initial Directory #17

Closed santimchp closed 3 months ago

santimchp commented 4 years ago

Just wondering, is there a way of setting the initial directory when opening the dialog chooser? as it always opens c:/users/ by default. I didn't see any method for it so I was wondering if there is a way to do this. Thank you.

mininotallarines commented 4 years ago

Hey @santimchp this might be little late and I can't confirm this works but looking through the code, there is a constructor that takes a FilecurrentDirectory and there is also a constructor that takes a StringcurrentDirectoryPath