On Mon, 9 Mar 2026 19:31:35 GMT, Dmitry Markov <[email protected]> wrote:
> The following methods in FileChooser class: showOpenDialog, > showOpenMultipleDialog and showSaveDialog throw IllegalArgumentException if > initialDirectory does not exist or is not a directory or is not accessible. > This can result in a poor user experience so callers should validate > initialDirectory or fall back to a safe default before showing the dialog. > > Proposed fix: > If this directory is not set, does not exist, is not a directory or is not > accessible the dialog will fall back to the platform-default location. The > default folder may be different across operating systems. Update the > specification of FileChooser class to clarify new behaviour. This pull request has now been integrated. Changeset: 0b8ddccc Author: Dmitry Markov <[email protected]> Committer: Andy Goryachev <[email protected]> URL: https://git.openjdk.org/jfx/commit/0b8ddccc2bd972c796ac1f7961895a74efb7e496 Stats: 16 lines in 2 files changed: 5 ins; 4 del; 7 mod 8365938: FileChooser: initialDirectory must be a valid folder Reviewed-by: angorya, mhanl, arapte ------------- PR: https://git.openjdk.org/jfx/pull/2101
