--- old/src/demo/share/jfc/SwingSet2/FileChooserDemo.java 2020-01-22 16:03:52.000000000 -0800 +++ new/src/demo/share/jfc/SwingSet2/FileChooserDemo.java 2020-01-22 16:03:51.000000000 -0800 @@ -273,7 +273,7 @@ dialog.getContentPane().add(custom, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(getDemoPanel()); - dialog.show(); + dialog.setVisible(true); } }; return createButton(a);