diff --git a/test/jdk/javax/swing/JFileChooser/FileSystemView/CustomFSVLinkTest.java b/test/jdk/javax/swing/JFileChooser/FileSystemView/CustomFSVLinkTest.java index 2c5f1a2c446..0a8787e6045 100644 --- a/test/jdk/javax/swing/JFileChooser/FileSystemView/CustomFSVLinkTest.java +++ b/test/jdk/javax/swing/JFileChooser/FileSystemView/CustomFSVLinkTest.java @@ -81,6 +81,7 @@ public class CustomFSVLinkTest { PassFailJFrame.addTestWindow(frame); PassFailJFrame.positionTestWindow(frame, PassFailJFrame.Position.HORIZONTAL); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + jfc.setControlButtonsAreShown(false); jfc.setDialogType(JFileChooser.CUSTOM_DIALOG); frame.add(jfc, BorderLayout.CENTER);