On Fri, 22 Mar 2024 21:05:09 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> > Instantiating JFileChooser on EDT adds complexity for no benefit. The > > JFileChooser is still accessed concurrently from several threads, including > > Swing internal thread. > > But still, this is a common requirement to create UI components on EDT, and > that will replicate more or less how it will work in the application. And it is a common requirement ***not** to call `fileChooser.rescanCurrentDirectory` concurrently* in 5 different threads. So it does not apply. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1536253490