Package javax.swing

Examples of javax.swing.JTextField$TextFieldActionPropertyChangeListener


    rbSeparatorTab.addActionListener(selectAction);
    rbSeparatorColon.addActionListener(selectAction);
    rbSeparatorSemicolon.addActionListener(selectAction);
    rbSeparatorOther.addActionListener(selectAction);

    txSeparatorOther = new JTextField();
    txSeparatorOther.setDocument(new LengthLimitingDocument(1));
    txSeparatorOther.setColumns(5);
    getFormValidator().registerTextField(txSeparatorOther);

    cbxStrictLayout = new JCheckBox(getResources().getString("csvexportdialog.strict-layout")); //$NON-NLS-1$
    getFormValidator().registerButton(cbxStrictLayout);

    txFilename = new JTextField();
    txFilename.setColumns(30);
    encodingModel = EncodingComboBoxModel.createDefaultModel(Locale.getDefault());
    encodingModel.sort();
    cbEncoding = new JComboBox(encodingModel);
View Full Code Here


    final RevalidateListener revalidateListener = new RevalidateListener();

    previewPane = new PageFormatPreviewPane();

    pageFormatBox = new JComboBox(new DefaultComboBoxModel(PageFormatFactory.getInstance().getPageFormats()));
    pageHeightField = new JTextField();
    pageHeightField.setColumns(5);
    pageHeightField.getDocument().addDocumentListener(revalidateListener);
    pageWidthField = new JTextField();
    pageWidthField.setColumns(5);
    pageWidthField.getDocument().addDocumentListener(revalidateListener);

    landscapeModeBox = new JCheckBox();
    landscapeModeBox.addActionListener(new OrientationChangeListener());
    portraitModeBox = new JCheckBox();
    portraitModeBox.addActionListener(new OrientationChangeListener());

    preDefinedPageSizeBox = new JCheckBox();
    preDefinedPageSizeBox.addChangeListener(new PageSizeCheckBoxSelectionAction());
    userDefinedPageSizeBox = new JCheckBox();
    userDefinedPageSizeBox.addChangeListener(new PageSizeCheckBoxSelectionAction());

    final ButtonGroup pageSizeGroup = new ButtonGroup();
    pageSizeGroup.add(preDefinedPageSizeBox);
    pageSizeGroup.add(userDefinedPageSizeBox);

    spanHorizontalField = new JTextField();
    spanHorizontalField.setColumns(5);
    spanHorizontalField.getDocument().addDocumentListener(revalidateListener);
    spanVerticalField = new JTextField();
    spanVerticalField.setColumns(5);
    spanVerticalField.getDocument().addDocumentListener(revalidateListener);
    marginTopField = new JTextField();
    marginTopField.setColumns(5);
    marginTopField.getDocument().addDocumentListener(revalidateListener);
    marginLeftField = new JTextField();
    marginLeftField.setColumns(5);
    marginLeftField.getDocument().addDocumentListener(revalidateListener);
    marginBottomField = new JTextField();
    marginBottomField.setColumns(5);
    marginBottomField.getDocument().addDocumentListener(revalidateListener);
    marginRightField = new JTextField();
    marginRightField.setColumns(5);
    marginRightField.getDocument().addDocumentListener(revalidateListener);

    final ButtonGroup orientationGroup = new ButtonGroup();
    orientationGroup.add(portraitModeBox);
View Full Code Here

  /**
   * Initializes the Swing components of this dialog.
   */
  private void initialize()
  {
    txAuthor = new JTextField();
    txAuthor.setColumns(40);
    txTitle = new JTextField();
    txTitle.setColumns(40);
    txKeywords = new JTextField();
    txKeywords.setColumns(40);
    txDescription = new JTextField();
    txDescription.setColumns(40);
    txFilename = new JTextField();
    txFilename.setColumns(40);

    encodingModel = EncodingComboBoxModel.createDefaultModel(Locale.getDefault());
    encodingModel.sort();

View Full Code Here

  private void initializeComponents()
  {
    setTitle(getResources().getString("pdfsavedialog.dialogtitle")); //$NON-NLS-1$

    txAuthor = new JTextField();
    txAuthor.setColumns(40);
    txTitle = new JTextField();
    txTitle.setColumns(40);
    txKeywords = new JTextField();
    txKeywords.setColumns(40);
    txDescription = new JTextField();
    txDescription.setColumns(40);

    rbSecurityNone = new JRadioButton(getResources().getString("pdfsavedialog.securityNone")); //$NON-NLS-1$
    rbSecurity40Bit = new JRadioButton(getResources().getString("pdfsavedialog.security40bit")); //$NON-NLS-1$
    rbSecurity128Bit = new JRadioButton(getResources().getString("pdfsavedialog.security128bit")); //$NON-NLS-1$

    final Action securitySelectAction = new ActionSecuritySelection();
    rbSecurityNone.addActionListener(securitySelectAction);
    rbSecurity40Bit.addActionListener(securitySelectAction);
    rbSecurity128Bit.addActionListener(securitySelectAction);

    rbSecurity128Bit.setSelected(true);

    txUserPassword = new JPasswordField();
    txConfUserPassword = new JPasswordField();
    txOwnerPassword = new JPasswordField();
    txConfOwnerPassword = new JPasswordField();

    cxAllowCopy = new JCheckBox(getResources().getString("pdfsavedialog.allowCopy")); //$NON-NLS-1$
    cbAllowPrinting = new JComboBox(getPrintingComboBoxModel());
    cxAllowScreenReaders =
        new JCheckBox(getResources().getString(
            "pdfsavedialog.allowScreenreader")); //$NON-NLS-1$

    cxAllowAssembly = new JCheckBox(getResources().getString(
        "pdfsavedialog.allowAssembly")); //$NON-NLS-1$
    cxAllowModifyContents =
        new JCheckBox(getResources().getString(
            "pdfsavedialog.allowModifyContents")); //$NON-NLS-1$
    cxAllowModifyAnnotations =
        new JCheckBox(getResources().getString(
            "pdfsavedialog.allowModifyAnnotations")); //$NON-NLS-1$
    cxAllowFillIn = new JCheckBox(getResources().getString(
        "pdfsavedialog.allowFillIn")); //$NON-NLS-1$


    txFilename = new JTextField();
    txFilename.setColumns(40);
    statusBar = new JStatusBar();

    encodingModel = EncodingComboBoxModel.createDefaultModel(Locale.getDefault());
    encodingModel.sort();
View Full Code Here

    rbSeparatorColon.addActionListener(selectAction);
    rbSeparatorSemicolon.addActionListener(selectAction);
    rbSeparatorOther.addActionListener(selectAction);

    final LengthLimitingDocument ldoc = new LengthLimitingDocument(1);
    txSeparatorOther = new JTextField();
    txSeparatorOther.setDocument(ldoc);
    getFormValidator().registerTextField(txSeparatorOther);


    GridBagConstraints gbc = new GridBagConstraints();
View Full Code Here

      // Add the spinner with its model
      constraints.gridx = 1;
      constraints.gridy = 0;
      constraints.anchor = GridBagConstraints.WEST;
      JTextField strokeWidthField = new JTextField();
      strokeWidthField.getDocument().addDocumentListener(new WidthUpdateHandler(strokeWidthField));
      strokeWidthField.setText(String.valueOf(width));
      strokeWidthField.setColumns(6);
      this.add(strokeWidthField, constraints);

      // Add the dash Label
      constraints.gridx = 0;
      constraints.gridy = 1;
View Full Code Here

        namePanel.add(nameLabel);

        c2.fill = GridBagConstraints.HORIZONTAL;
        c2.weightx = 1.0;
        c2.weighty = 1.0;
        nameField = new JTextField(layerName);
        gridbag2.setConstraints(nameField, c2);
        namePanel.add(nameField);

        outerc.anchor = GridBagConstraints.WEST;
        outerc.weighty = 0;
View Full Code Here

    entryLabelCarrier = new JPanel();
    entryLabelCarrier.setLayout(new BorderLayout());
    entryLabelCarrier.add(entryLabel);
    contentPane.add(entryLabelCarrier, BorderLayout.WEST);

    content = new JTextField();
    content.getDocument().addDocumentListener(new DocumentChangeHandler());

    contentPane.add(content, BorderLayout.CENTER);
    setContentPane(contentPane);
    reset();
View Full Code Here

    loginFrame = new JFrame("Ganymed SSH2 SwingShell");

    hostLabel = new JLabel("Hostname:");
    userLabel = new JLabel("Username:");

    hostField = new JTextField("", 20);
    userField = new JTextField("", 10);

    loginButton = new JButton("Login");

    loginButton.addActionListener(new ActionListener()
    {
View Full Code Here

        JLabel contentLabel = new JLabel(content[i]);
        pan.add(contentLabel);

      }

      answerField = new JTextField(20);
      passwordField = new JPasswordField(20);

      if (isPassword)
        pan.add(passwordField);
      else
View Full Code Here

TOP

Related Classes of javax.swing.JTextField$TextFieldActionPropertyChangeListener

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.