When JFilechooser is added to a frame, the control buttons are disabled. Since in the test the control buttons are not required since JFilechooser is added to a JFrame and in turn frame disposal is handled by PassFailJFrame. The fix is to disable JFileChooser control buttons.
------------- Commit messages: - Fix Changes: https://git.openjdk.org/jdk/pull/11821/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11821&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8299306 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/11821.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11821/head:pull/11821 PR: https://git.openjdk.org/jdk/pull/11821
