On Tue, 10 Mar 2026 22:43:36 GMT, Andy Goryachev <[email protected]> wrote:
>> Throwing an exception when the initial directory is not accessible for any >> reason is not a useful API. This requires the caller to _always_ catch the >> potential exception, and try to show the dialog again with a fallback folder >> (or `null`). In the worst case, this means that the application is broken >> because the dialog can't be shown and the user can't proceed. > > yeah, an invalid directory should work same as `null`. All good points. I'm convinced. And yes, I agree that whatever we do when the dir is `null` would be a reasonable expectation if the dir is not null but inaccessible. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2101#discussion_r2915026064
