Package com.visitrend.ndvis.preferences.spi

Examples of com.visitrend.ndvis.preferences.spi.NDVisPreferences


  }

  public void actionPerformed(ActionEvent ae) {
    PreferencesDialog dialog = PreferencesDialog.showDialog(WindowManager.getDefault().getMainWindow());
    if (dialog.getExitValue() == PreferencesDialog.OK) {
                    NDVisPreferences prefs = Lookup.getDefault().lookup(NDVisPreferences.class);
                    prefs.setShowDBConnectPref(dialog.getShowDBConnect());
    }
  }
View Full Code Here


  // 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));
View Full Code Here

            }
        });
    }
   
    public NDVisPreferences getPreferences() {
        NDVisPreferences prefs = Lookup.getDefault().lookup(NDVisPreferences.class);
        return prefs;
    }
View Full Code Here

TOP

Related Classes of com.visitrend.ndvis.preferences.spi.NDVisPreferences

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.