Package javax.swing

Examples of javax.swing.JTextField$NotifyAction


          nameList.setSelectionModel(disableSelections);
        }
        {
          JPanel bottomPanel = new JPanel(new GridBagLayout());
          panel.add(bottomPanel, BorderLayout.SOUTH);
          bottomPanel.add(sendText = new JTextField(), new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
          bottomPanel.add(sendButton = new JButton("Send"), new GridBagConstraints(1, 0, 1, 1, 0, 0,
            GridBagConstraints.CENTER, 0, new Insets(0, 0, 0, 0), 0, 0));
        }
      }
View Full Code Here


   *
   * @throws Exception
   */
  public void testResetButton() throws Exception {
    String testString = "test string";
    JTextField tf = (JTextField) TestUtils.getChildNamed(gf, "tf");
    assertNotNull(tf); // tf found?
    tf.setText(testString);
    tf.postActionEvent(); // send message
    assertEquals(testString, tf.getText());
    JButton reset = (JButton) TestUtils.getChildNamed(gf, "reset");
    assertNotNull(reset); // reset found?
    reset.doClick(); // "click" reset
    assertEquals("", tf.getText());
  }
View Full Code Here

     */
    private JPanel constructMainPanel() {
        JPanel mainPanel = new JPanel();
        mainPanel.add(jButtonBrowse);
        //create the textField.
        jTextFieldFile = new JTextField(TEXTFIELD_WIDTH);
        mainPanel.add(jTextFieldFile);
        return mainPanel;
    }
View Full Code Here

            if (tab != null) {
                SourceTree.addSourceIcons(tab);
            }
        }
        lAlias = new JLabel(resources.getStringValue("Alias"));
        tfAlias = new JTextField();
       
       
        GridBagPanel sourcePane = new GridBagPanel();
        sourcePane.addOnCurrentRow(filteredSourceTree, 5, true, true, true);
        sourcePane.addOnCurrentRow(lAlias);
View Full Code Here

 
  protected JPanel createNamePanel(String name){

    JPanel p=new JPanel(new GridLayout(0,2));
    JLabel jpName = new JLabel(resources.getString("name"));
    nameField = new JTextField(name);
    p.add(jpName);
    p.add(nameField);
    return p;
  }
View Full Code Here

     
      pProp.add(pb);
    }
   
    if (propertyData.length==0)
      pProp.add(new JTextField("No additional properties available"));
   
    if (transformAvailable)
      p.add(pProp, BorderLayout.SOUTH);
    else
      p.add(pProp, BorderLayout.CENTER);
View Full Code Here

            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(new JLabel(resources.getString("min")));
            box.add(Box.createHorizontalGlue());
            box.add(tfMin = new JTextField());
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(new JLabel(resources.getString("max")));
            box.add(Box.createHorizontalGlue());
            box.add(tfMax = new JTextField());
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(new JLabel(resources.getString("step")));
            box.add(Box.createHorizontalGlue());
            box.add(tfStep = new JTextField());
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(new JLabel(" "));
            vbox.add(box);
           
            cardPane.add(vbox,"s");
           
            vbox = Box.createVerticalBox();
           
            box = Box.createHorizontalBox();
            box.add(new JLabel(resources.getString("initValue")));
            box.add(Box.createHorizontalGlue());
            box.add(tfInit = new JTextField());
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(new JLabel(resources.getString("step")));
            box.add(Box.createHorizontalGlue());
            box.add(tfDynaStep = new JTextField());
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(cbDynaEnd = new ActionCheckBox(resources.getString("stopValue"), false) {
                public void actionPerformed(ActionEvent e) {
                    tfDynaStop.setEnabled(cbDynaEnd.isSelected());
                    tfDynaStop.setEditable(cbDynaEnd.isSelected());
                }
            });
            box.add(Box.createHorizontalGlue());
            box.add(tfDynaStop = new JTextField());
            vbox.add(box);
            cbDynaEnd.apply();
           
            box = Box.createHorizontalBox();
            box.add(bufferLabel = new JLabel(resources.getString("dynamicBufferLabel")));
            box.add(Box.createHorizontalGlue());
            box.add(tfSize = new JTextField());
            tfSize.setText("100");
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(bufferLabel = new JLabel(resources.getString("period")));
            box.add(Box.createHorizontalGlue());
            box.add(tfPeriod = new JTextField());
            tfPeriod.setText("1000");
            vbox.add(box);
           
            cardPane.add(vbox,"d");
           
View Full Code Here

      SourceCategoryDataset dst = (SourceCategoryDataset)plot.getDataset();

      // Create the title section
      section=Box.createHorizontalBox();
      section.add(new JLabel(resources.getString("PlotTitle:")));
      section.add(tfTitle = new JTextField());
      tfTitle.setText(chart.getTitle().getText());
      content.add(section);

      section=Box.createVerticalBox();
      section.setBorder(BorderFactory.createTitledBorder(resources.getString("Series")));
View Full Code Here

        gbc.gridy = 0;
        gbc.weighty = 1;
        gbc.anchor = GridBagConstraints.EAST;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        // textfileds
        tfTime1 = new JTextField();
        tfPhysical = new JTextField();
        tfRaw = new JTextField();
        tfLabel = new JTextField();
        tfStatus = new JTextField();
        tfTime1.setEditable(false);
        tfPhysical.setEditable(false);
        tfRaw.setEditable(false);
        tfLabel.setEditable(false);
        tfStatus.setEditable(false);
View Full Code Here

    gbc.weighty = 1;
    gbc.anchor = GridBagConstraints.EAST;
    gbc.fill = GridBagConstraints.HORIZONTAL;
   
    // textfileds
    tfTime1 = new JTextField();
    tfTime2 = new JTextField();
    tfPhysical = new JTextField();
   
    tfTime1.setEditable(false);
    tfTime2.setEditable(false);
    tfPhysical.setEditable(false);
   
View Full Code Here

TOP

Related Classes of javax.swing.JTextField$NotifyAction

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.