Package javax.swing

Examples of javax.swing.JTextField$TextFieldActionPropertyChangeListener


   *
   * @return the enumeration detail editor.
   */
  private JPanel createEnumerationEditor()
  {
    enumEntryEditField = new JTextField();
    enumEntryListModel = new DefaultListModel();

    enumEntryList = new JList(enumEntryListModel);
    enumEntryList.addListSelectionListener(new EnumerationListSelectionHandler());

View Full Code Here


   *
   * @return the class detail editor.
   */
  private JPanel createClassEditor()
  {
    baseClassField = new JTextField();
    final JLabel baseClassValidateMessage = new JLabel(" ");

    final JLabel textLabel = new JLabel
        (resources.getString("config-description-editor.baseclass")); //$NON-NLS-1$
    final JPanel panel = new JPanel();
View Full Code Here

            (ConfigDescriptionEditor.EDITOR_FONT_SIZE_KEY), 12);
    descriptionField = new JTextArea();
    descriptionField.setFont(new Font(font, Font.PLAIN, fontSize));
    descriptionField.setLineWrap(true);
    descriptionField.setWrapStyleWord(true);
    keyNameField = new JTextField();

    final JPanel enumerationEditor = createEnumerationEditor();
    final JPanel textEditor = createTextEditor();
    final JPanel classEditor = createClassEditor();
View Full Code Here

                                             JComponent parent) {

        JPanel pal = PaletteHelper.createHorizontalPanel(null);
        JLabel label = new JLabel(title);
        label.setHorizontalTextPosition(JLabel.RIGHT);
        JTextField tf = new JTextField(entry);
        label.setLabelFor(tf);
        pal.add(label);
        pal.add(tf);
        parent.add(pal);
        return tf;
View Full Code Here

        JButton configureButton = new JButton(i18n.get(LayerAddPanel.class, "configureButton", "Configure"));
        configureButton.addActionListener(this);
        configureButton.setActionCommand(configureActionCommand);

        String defaultLayerName = i18n.get(LayerAddPanel.class, "defaultLayerName", DefaultLayerName);
        prefixTextField = new JTextField(defaultLayerName, 12);

        Object[] layerTypes = getLayerClasses().keySet().toArray();
       
        GridBagLayout gridbag = new GridBagLayout();
        GridBagConstraints c = new GridBagConstraints();
View Full Code Here

    constraint = new GridBagConstraints();
    constraint.gridx = 0;
    constraint.gridy = 0;
    pane.add(srclbl, constraint);

    source = new JTextField(FILEFIELDSIZE);
    constraint = new GridBagConstraints();
    constraint.gridx = 1;
    constraint.gridy = 0;
    pane.add(source, constraint);

    srcbutton = new JButton("Choose");
    constraint = new GridBagConstraints();
    constraint.gridx = 2;
    constraint.gridy = 0;
    pane.add(srcbutton, constraint);

    srcbutton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        srcbuttonActionPerformed(evt);
      }
    });

    JLabel targetlbl = new JLabel("Target file/dir:");
    constraint = new GridBagConstraints();
    constraint.gridx = 0;
    constraint.gridy = 1;
    pane.add(targetlbl, constraint);

    target = new JTextField(FILEFIELDSIZE);
    constraint = new GridBagConstraints();
    constraint.gridx = 1;
    constraint.gridy = 1;
    pane.add(target, constraint);
View Full Code Here

        String entry = "";
        String info = "Scale";
        String command = setScaleCmd;

        scaleField = new JTextField(entry, 10);
        //        scaleField.setToolTipText(info);
        scaleField.setToolTipText(i18n.get(ScaleTextPanel.class,
                command,
                I18n.TOOLTIP,
                info));
View Full Code Here

        JButton rereadFilesButton = new JButton("ReRead OMGraphics");
        rereadFilesButton.setActionCommand(READ_DATA_COMMAND);
        rereadFilesButton.addActionListener(this);

        JLabel fileLabel = new JLabel("Read from: ");
        JTextField pathText = new JTextField(cacheURL.toString());

        Box filebox = Box.createHorizontalBox();
        filebox.add(fileLabel);
        filebox.add(pathText);
View Full Code Here

        String textString = "Text";
        if (text != null) {
            textString = text.getData();
        }

        JTextField textField = new JTextField(textString, 25);
        textField.setActionCommand(TextFieldCommand);
        textField.addActionListener(this);
        textField.setMargin(new Insets(0, 1, 0, 1));
        textField.setMinimumSize(new java.awt.Dimension(100, 20));
        textField.setPreferredSize(new java.awt.Dimension(100, 20));
        attributeBox.add(textField);

        // JPanel palette =
        // PaletteHelper.createHorizontalPanel("Rotation");
        javax.swing.Box palette = javax.swing.Box.createHorizontalBox();
        textField = new JTextField(Integer.toString((int) (text.getRotationAngle() * 180 / Math.PI)), 5);
        textField.setActionCommand(TextRotationCommand);
        textField.setToolTipText(i18n.get(EditableOMText.class,
                "textField",
                I18n.TOOLTIP,
                "Text rotation in degrees"));
        textField.setMargin(new Insets(0, 1, 0, 1));
        textField.addActionListener(this);
        textField.setMinimumSize(new java.awt.Dimension(30, 20));
        textField.setPreferredSize(new java.awt.Dimension(30, 20));
        palette.add(textField);
        palette.add(new JLabel("\u00b0 "));
        attributeBox.add(palette);

        String[] sizesStrings = { "3", "5", "8", "10", "12", "14", "18", "20",
View Full Code Here

            namePanel.setLayout(new FlowLayout());

            label = new JLabel(i18n.get(GoToMenu.class,
                    "nameOfView",
                    "Name of View: "));
            nameField = new JTextField("", 20);

            namePanel.add(label);
            namePanel.add(nameField);

            palette.add(namePanel);
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.