< prev index next >

src/demo/share/jfc/SwingSet2/FileChooserDemo.java

Print this page

        

@@ -271,11 +271,11 @@
                 dialog = new JDialog(parent, getString("FileChooserDemo.dialogtitle"), true);
                 dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                 dialog.getContentPane().add(custom, BorderLayout.CENTER);
                 dialog.pack();
                 dialog.setLocationRelativeTo(getDemoPanel());
-                dialog.show();
+                dialog.setVisible(true);
             }
         };
         return createButton(a);
     }
 
< prev index next >