// GUI components
private JCheckBox showDBConnect;
private PreferencesDialog(Component parent) {
super(JOptionPane.getFrameForComponent(parent), "Set Preferences", true);
NDVisPreferences prefs = Lookup.getDefault().lookup(NDVisPreferences.class);
JPanel checkBoxPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
showDBConnect = new JCheckBox("Show Connect to Database Message");
showDBConnect.setSelected(prefs.getShowDBConnectPref());
checkBoxPanel.add(showDBConnect);
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));