Examples of TextField


Examples of java.awt.TextField

            gbc.weightx = 1.0;
            UIUtil.gridBagAdd(p, new Label(((BasicAuthentication) authenticator).getRealm()), gbc, GridBagConstraints.REMAINDER);
        }

        // Realm
        TextField domain = null;
        if (authenticator instanceof NTLMAuthentication) {
            gbc.weightx = 0.0;
            UIUtil.gridBagAdd(p, new Label(Messages.getString("AuthenticationDialog.domain")), gbc, GridBagConstraints.RELATIVE); //$NON-NLS-1$
            domain = new TextField("", 15); //$NON-NLS-1$
            gbc.weightx = 1.0;
            UIUtil.gridBagAdd(p, domain, gbc, GridBagConstraints.REMAINDER);
        }

        // Username
        gbc.weightx = 0.0;
        UIUtil.gridBagAdd(p, new Label(Messages.getString("AuthenticationDialog.username")), gbc, GridBagConstraints.RELATIVE); //$NON-NLS-1$
        final TextField username = new TextField("", 15); //$NON-NLS-1$
        gbc.weightx = 1.0;
        UIUtil.gridBagAdd(p, username, gbc, GridBagConstraints.REMAINDER);
        username.requestFocus();

        // Password
        gbc.weightx = 0.0;
        UIUtil.gridBagAdd(p, new Label(Messages.getString("AuthenticationDialog.password")), gbc, GridBagConstraints.RELATIVE); //$NON-NLS-1$
        final TextField password = new TextField("", 15); //$NON-NLS-1$
        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 java.awt.TextField

        chooserButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                showChooser();
            }
        });
        textField = new TextField(text, columns) {
            public Dimension getPreferredSize() {
                return new Dimension(super.getPreferredSize().width, chooserButton.getPreferredSize().height);
            }

            public Dimension getMinimumSize() {
View Full Code Here

Examples of java.awt.TextField

        UIUtil.gridBagAdd(top, z, gbc, GridBagConstraints.REMAINDER);
       
        // Create the path panel
        Panel pathPanel = new Panel(new GridBagLayout());
        GridBagConstraints gbc1 = new GridBagConstraints();
        path = new TextField(""); //$NON-NLS-1$
        path.addActionListener(this);
        gbc1.fill = GridBagConstraints.HORIZONTAL;
        gbc1.anchor = GridBagConstraints.WEST;
        gbc1.weightx = 0.0;
        gbc1.insets = new Insets(2, 2, 2, 2);
View Full Code Here

Examples of java.awt.TextField

        Panel p = new Panel();

        p.setBackground(SystemColor.control);
        p.setLayout(new GridLayout(16, 1));

        tSourceTable = new TextField();

        tSourceTable.setEnabled(false);

        tDestTable = new TextField();

        tDestTable.addActionListener(this);

        tDestDrop = new TextField();

        tDestDrop.addActionListener(this);

        tDestCreate = new TextField();

        tDestCreate.addActionListener(this);

        tDestDelete = new TextField();

        tDestDelete.addActionListener(this);

        tDestCreateIndex = new TextField();

        tDestCreateIndex.addActionListener(this);

        tDestDropIndex = new TextField();

        tDestDropIndex.addActionListener(this);

        tSourceSelect = new TextField();

        tSourceSelect.addActionListener(this);

        tDestInsert = new TextField();

        tDestInsert.addActionListener(this);

        tDestAlter = new TextField();

        tDestAlter.addActionListener(this);

        cTransfer = new Checkbox("Transfer to destination table", true);

        cTransfer.addItemListener(this);

        cDrop = new Checkbox("Drop destination table (ignore error)", true);

        cDrop.addItemListener(this);

        cCreate = new Checkbox("Create destination table", true);

        cCreate.addItemListener(this);

        cDropIndex = new Checkbox("Drop destination index (ignore error)",
                                  true);

        cDropIndex.addItemListener(this);

        cIdxForced = new Checkbox("force Idx_ prefix for indexes names",
                                  false);

        cIdxForced.addItemListener(this);

        cCreateIndex = new Checkbox("Create destination index", true);

        cCreateIndex.addItemListener(this);

        cDelete = new Checkbox("Delete rows in destination table", true);

        cDelete.addItemListener(this);

        cInsert = new Checkbox("Insert into destination", true);

        cInsert.addItemListener(this);

        cFKForced = new Checkbox("force FK_ prefix for foreign key names",
                                 false);

        cFKForced.addItemListener(this);

        cAlter = new Checkbox("Alter destination table", true);

        cAlter.addItemListener(this);
        p.add(createLabel("Source table"));
        p.add(tSourceTable);
        p.add(cTransfer);
        p.add(tDestTable);
        p.add(cDrop);
        p.add(tDestDrop);
        p.add(cCreate);
        p.add(tDestCreate);
        p.add(cDropIndex);
        p.add(tDestDropIndex);
        p.add(cCreateIndex);
        p.add(tDestCreateIndex);
        p.add(cDelete);
        p.add(tDestDelete);
        p.add(cAlter);
        p.add(tDestAlter);
        p.add(createLabel("Select source records"));
        p.add(tSourceSelect);
        p.add(cInsert);
        p.add(tDestInsert);
        p.add(createLabel(""));
        p.add(createLabel(""));
        p.add(cIdxForced);
        p.add(cFKForced);
        p.add(createLabel(""));
        p.add(createLabel(""));

        if (iTransferMode == TRFM_TRANSFER) {
            bStart    = new Button("Start Transfer");
            bContinue = new Button("Continue Transfer");

            bContinue.setEnabled(false);
        } else if (iTransferMode == Transfer.TRFM_DUMP) {
            bStart = new Button("Start Dump");
        } else if (iTransferMode == Transfer.TRFM_RESTORE) {
            bStart = new Button("Start Restore");
        }

        bStart.addActionListener(this);
        p.add(bStart);

        if (iTransferMode == TRFM_TRANSFER) {
            bContinue.addActionListener(this);
            p.add(bContinue);
        }

        bStart.setEnabled(false);
        fMain.add("Center", createBorderPanel(p));

        lTable = new java.awt.List(10);

        lTable.addItemListener(this);
        fMain.add("West", createBorderPanel(lTable));

        tMessage = new TextField();

        Panel pMessage = createBorderPanel(tMessage);

        fMain.add("South", pMessage);
    }
View Full Code Here

Examples of java.awt.TextField

            }
        });
        pClearButton.add(b);
        pLabel.add(createLabel("Setting Name:"));

        mName = new TextField("");

        pText.add(mName);
        pLabel.add(createLabel("Type:"));

        types     = new Choice();
        connTypes = ConnectionDialogCommon.getTypes();

        for (int i = 0; i < connTypes.length; i++) {
            types.add(connTypes[i][0]);
        }

        types.addItemListener(this);
        pText.add(types);
        pLabel.add(createLabel("Driver:"));

        mDriver = new TextField(connTypes[0][1]);

        pText.add(mDriver);
        pLabel.add(createLabel("URL:"));

        mURL = new TextField(connTypes[0][2]);

        mURL.addActionListener(this);
        pText.add(mURL);
        pLabel.add(createLabel("User:"));

        mUser = new TextField("SA");

        mUser.addActionListener(this);
        pText.add(mUser);
        pLabel.add(createLabel("Password:"));

        mPassword = new TextField("");

        mPassword.addActionListener(this);
        mPassword.setEchoChar('*');
        pText.add(mPassword);

View Full Code Here

Examples of javafx.scene.control.TextField

    inboxFolder = new UGateCtrlBox<>(controlBar.getActorPA(),
        ActorType.MAIL_INBOX_NAME, UGateCtrlBox.Type.TEXT,
        RS.rbLabel(KEY.MAIL_FOLDER_NAME), null);
    controlBar.addHelpTextTrigger(inboxFolder,
        RS.rbLabel(KEY.MAIL_FOLDER_DESC));
    recipient = new TextField();
    HBox.setHgrow(recipient, Priority.ALWAYS);
    recipient.setPromptText(RS
        .rbLabel(KEY.MAIL_ALARM_NOTIFY_EMAILS_ADD_DESC));
    final FunctionButton recipientAdd = createRecipientAddBtn();
    controlBar.addHelpTextTrigger(recipientAdd,
View Full Code Here

Examples of javax.microedition.lcdui.TextField

    m_getFeedTitleList = false;
    m_listParser = null;
    if(url.length()==0) {
      url = "http://";
    }
    m_feedListURL = new TextField("URL", url, 256, TextField.URL);
    super.append(m_feedListURL);
   
    m_importFormatGroup = new ChoiceGroup("Format", ChoiceGroup.EXCLUSIVE,
    new String[] {"OPML", "line by line"
        //#ifndef DSMALLMEM
        , "HTML OPML Auto link", "HTML RSS Auto links"
        , "HTML Links"
        //#endif
        },
        null);
    super.append(m_importFormatGroup);
   
    m_feedNameFilter = new TextField("Name filter string (optional)", "", 256, TextField.ANY);
    super.append(m_feedNameFilter);
    m_feedURLFilter = new TextField("URL filter string (optional)", "", 256, TextField.ANY);
    super.append(m_feedURLFilter);
   
    final String username = m_appSettings.getImportUrlUsername();
    m_feedListUsername  = new TextField("Username (optional)", username, 64, TextField.ANY);
    super.append(m_feedListUsername);
   
    final String password = m_appSettings.getImportUrlPassword();
    m_feedListPassword  = new TextField("Password (optional)", password, 64, TextField.PASSWORD);
    super.append(m_feedListPassword);
    m_importTitleGroup  = new ChoiceGroup("Missing title (optionl)",
        ChoiceGroup.EXCLUSIVE,
        new String[] {"Skip feed with missing title",
         "Get missing titles from feed"}, null);
View Full Code Here

Examples of javax.microedition.lcdui.TextField

        }
       
        /** Copy link to clipboard.  */
        if( c == m_copyLinkCmd ){
      String link = citem.getLink();
      m_itemForm.set(citemLnkNbr, new TextField("Link:", link,
          link.length(), TextField.URL));
      //#ifdef DMIDP10
      setCurrent(m_itemForm);
      //#else
      setCurrentItem(m_itemForm.get(citemLnkNbr));
      //#endif
        }
       
        /** Copy enclosure to clipboard.  */
        if( c == m_copyEnclosureCmd ){
      final String link = citem.getEnclosure();
      m_itemForm.set(citemEnclNbr, new TextField("Enclosure:",
                link, link.length(), TextField.URL));
      //#ifdef DMIDP10
      setCurrent(m_itemForm);
      //#else
      setCurrentItem(m_itemForm.get(citemEnclNbr));
View Full Code Here

Examples of javax.microedition.lcdui.TextField

    private TextField   m_bmPassword;       // The RSS feed password field

    /* Constructor */
    private BMForm(final boolean addForm) {
      super(addForm ? "New Bookmark" : "Edit Bookmark");
      m_bmName = new TextField("Name", "", 64, TextField.ANY);
      m_bmURL  = new TextField("URL", "http://", 256, TextField.URL);
      m_bmUsername  = new TextField("Username (optional)", "", 64, TextField.ANY);
      m_bmPassword  = new TextField("Password (optional)", "", 64, TextField.PASSWORD);
      super.append( m_bmName );
      super.append( m_bmURL );
      super.append( m_bmUsername );
      super.append( m_bmPassword );
      if (addForm) {
View Full Code Here

Examples of jcurses.widgets.TextField

    public CursesWindow(int x, int y, int width, int height, String title) {
        super(x, y, width, height, false, title);
        this.windowWidth = width;
        chatLog = new TextArea();
        chatLog.setColors(new CharColor(CharColor.WHITE, CharColor.BLACK));
        textField = new TextField();
        button = new Button("Send");
        button.setShortCut('\n');
        button.addListener(this);

        int innerHeight = height - 5;
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.