On Thu, 7 Sep 2023 18:57:50 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:
> Few closed JFileChooser and other swing tests are open sourced. test/jdk/javax/swing/JFileChooser/bug4624353.java line 55: > 53: fr.getContentPane().add(fc); > 54: fr.pack(); > 55: fr.setVisible(true); Delay might be required before starting test. test/jdk/javax/swing/JFileChooser/bug4624353.java line 59: > 57: passAround(fc); > 58: if (!passed) { > 59: throw new RuntimeException("Test failed"); RuntimeException can be outside SwingUtility to avoid Invocation error. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15626#discussion_r1322391425 PR Review Comment: https://git.openjdk.org/jdk/pull/15626#discussion_r1322392286