Examples of EditableComboBox


Examples of com.mucommander.ui.combobox.EditableComboBox

        // CredentialsManager returned matches (-> combo box) or not (-> text field).
        int nbCredentials = credentialsMappings.length;
        JComponent loginComponent;
        if(nbCredentials>0) {
            // Editable combo box
            loginComboBox = new EditableComboBox();
            this.loginField = loginComboBox.getTextField();

            // Add credentials to the combo box's choices
            for(int i=0; i<nbCredentials; i++)
                loginComboBox.addItem(credentialsMappings[i].getCredentials().getLogin());
View Full Code Here

Examples of com.mucommander.ui.combobox.EditableComboBox

      "250 " + Translator.get("unit.mb"),
      "650 " + Translator.get("unit.mb"),
      "700 " + Translator.get("unit.mb")
    };
    edtSize = new JTextField();
    EditableComboBox cbSize = new EditableComboBox(edtSize, sizes);
    cbSize.setComboSelectionUpdatesTextField(true);
    cbSize.setSelectedIndex(1);
    edtSize.addKeyListener(new KeyAdapter() {
      @Override
            public void keyReleased(KeyEvent e) {
        updatePartsNumber();
      }
    });
    cbSize.addComboBoxListener(new ComboBoxListener() {     
      public void comboBoxSelectionChanged(SaneComboBox source) {
        updatePartsNumber();       
      }
    });
    pnlSize.add(cbSize);
View Full Code Here

Examples of com.mucommander.ui.combobox.EditableComboBox

        panel = new JPanel(new BorderLayout());
        panel.setBorder(BorderFactory.createTitledBorder(Translator.get("preview")));

        headerPanel = new YBoxPanel();
        headerPanel.add(new JLabel(Translator.get("run_dialog.run_command_description") + ":"));
        headerPanel.add(historyPreview = new EditableComboBox(new JTextField("mucommander -v")));
        historyPreview.addItem("mucommander -v");
        historyPreview.addItem("java -version");

        headerPanel.addSpace(10);
        headerPanel.add(new JLabel(Translator.get("run_dialog.command_output")+":"));
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.