Examples of OptionDialog


Examples of com.sshtools.ui.awt.options.OptionDialog

        gbc.weightx = 1.0;
        UIUtil.gridBagAdd(p, password, gbc, GridBagConstraints.REMAINDER);
        password.requestFocus();
        password.setEchoChar('*');

        final OptionDialog dialog = new OptionDialog(OptionDialog.QUESTION, p, OptionDialog.CHOICES_OK_CANCEL, null);
        username.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                dialog.choice(OptionDialog.CHOICE_OK);
            }
        });
        password.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                dialog.choice(OptionDialog.CHOICE_OK);
            }
        });
        if (domain != null) {
            domain.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    dialog.choice(OptionDialog.CHOICE_OK);
                }
            });
        }

        if (dialog.dialogPrompt(null, Messages.getString("AuthenticationDialog.title")) == OptionDialog.CHOICE_OK) { //$NON-NLS-1$
            authenticator.setCredentials(new PasswordCredentials(username.getText().trim(), password.getText()));
            if (authenticator instanceof NTLMAuthentication && !domain.getText().trim().equals("")) { //$NON-NLS-1$
                ((NTLMAuthentication) authenticator).setDomain(domain.getText().trim());
            }
            return true;
View Full Code Here

Examples of entagged.tageditor.optionpanels.OptionDialog

      jMenuItem_Options.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          OptionPanelInterface general = new GeneralOptionPanel(f);
          OptionPanelInterface freedb = new FreedbOptionPanel();
          OptionPanelInterface[] opts = new OptionPanelInterface[] {general, freedb};
          OptionDialog eod = new OptionDialog(f, opts);
          eod.setVisible(true);
        }
      });
    }
    return jMenuItem_Options;
  }
View Full Code Here

Examples of entagged.tageditor.optionpanels.OptionDialog

    while(error) {
      if(prog == null || !new File(prog).exists()) {
        OptionPanelInterface general = new GeneralOptionPanel(owner);
        OptionPanelInterface freedb = new FreedbOptionPanel();
        OptionPanelInterface[] opts = new OptionPanelInterface[] {general, freedb};
        OptionDialog eod = new OptionDialog(owner,opts);
        eod.setVisible(true);
      }
      prog = PreferencesManager.get("entagged.mediaplayer");

      try {
        Runtime.getRuntime().exec("\"" + prog + "\" \"" + url + "\"");
View Full Code Here

Examples of jSimMacs.display.dialog.OptionDialog

  /**
   * Initalizes Dialogs
   */
  private void initDialogs() {
    optionDialog = new OptionDialog(this, JSimLogic.getInstance()
        .getGlobalOptions());
    optionDialog.pack();
    newProjectDialog = new NewProjectDialog(this);
    newProjectDialog.pack();
    JSimLogic.getInstance().addTypesToDialog(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.