< prev index next >
src/demo/share/jfc/SwingSet2/FileChooserDemo.java
Print this page
*** 271,281 ****
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();
}
};
return createButton(a);
}
--- 271,281 ----
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.setVisible(true);
}
};
return createButton(a);
}
< prev index next >