Package javax.swing

Examples of javax.swing.JTextField.addActionListener()


    c.insets = new Insets(0, 0, 5, 5);
    c.fill = GridBagConstraints.HORIZONTAL;
    add(new JLabel(Messages.uiGet("StagePanel.StageNameLabel")), c); //$NON-NLS-1$
    final JTextField stagenameF = new JTextField(geco.stage().getName());
    stagenameF.setColumns(12);
    stagenameF.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        validateStagename(stagenameF, geco, frame);
      }
    });
View Full Code Here


    formatter.setTimeZone(TimeZone.getTimeZone("GMT")); //$NON-NLS-1$
    final JTextField zerohourF = new JTextField(formatter.format(geco.stage().getZeroHour()));
    zerohourF.setColumns(7);
    zerohourF.setToolTipText(Messages.uiGet("StagePanel.ZeroHourTooltip")); //$NON-NLS-1$
    add(zerohourF, c);
    zerohourF.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        validateZeroHour(formatter, zerohourF, geco);
      }
    });
View Full Code Here

        public Object getCellEditorValue()
        {
          return textField.getText();
        }
      };
      textField.addActionListener(delegateObject);
      delegateObject.setValue(value);
      return textField;
    }
    if (value instanceof JComponent)
    {
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.