Package javax.swing

Examples of javax.swing.JTextField.addActionListener()


    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setBorder(new EtchedBorder());
    panel.add(new JLabel("ModelId:"), BorderLayout.NORTH);
    JTextField field = new JTextField(graph.getModel().getModelId(), 50);
    field.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent e) {
        if (!graph.getModel().getModelId().equals(e.getActionCommand())) {
          GuiUtils.updateGraphModelId(state, graph.getModel().getId(),
              e.getActionCommand());
View Full Code Here


    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setBorder(new EtchedBorder());
    panel.add(new JLabel("ModelName:"), BorderLayout.NORTH);
    JTextField field = new JTextField(graph.getModel().getModelName(), 50);
    field.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent e) {
        if (!graph.getModel().getModelName().equals(e.getActionCommand())) {
          // GuiUtils.updateGraphModelName(getState(),
          // graph.getModel().getModelId(), e.getActionCommand());
View Full Code Here

    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setBorder(new EtchedBorder());
    panel.add(new JLabel("InstanceClass:"), BorderLayout.NORTH);
    JTextField field = new JTextField(graph.getModel().getInstanceClass(), 50);
    field.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent e) {
        if (graph.getModel().getInstanceClass() == null
            || !graph.getModel().getInstanceClass()
                .equals(e.getActionCommand())) {
View Full Code Here

   
    mainTabPanel2.add("West", askMePanel);
    mainTabPanel2.add("Center", openedFilesPanel);
    mainTabPanel2.add("East", threeActionsPanel);
   
    askTf.addActionListener(new ActionListener(){

      public void actionPerformed(ActionEvent e) {
        openNativeBrowser("http://www.uengine.org/ask/?query="+askMeWhatever.getText());
      }
     
View Full Code Here

        entryBox.setForeground(foreground);
        _addPair(name, lbl, entryBox, entryBox);

        // Add the listener last so that there is no notification
        // of the first value.
        entryBox.addActionListener(new QueryActionListener(name));

        // Add a listener for loss of focus.  When the entry gains
        // and then loses focus, listeners are notified of an update,
        // but only if the value has changed since the last notification.
        // FIXME: Unfortunately, Java calls this listener some random
View Full Code Here

    getContentPane().add(jsp, BorderLayout.CENTER);
    getContentPane().add(urlPanel, BorderLayout.NORTH);
    getContentPane().add(statusBar, BorderLayout.SOUTH);

    // Last but not least, hook up our event handlers.
    urlField.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        try {
          jep.setPage(ae.getActionCommand());
        } catch (Exception e) {
          statusBar.setText("Error: " + e.getMessage());
View Full Code Here

                    @Override
                    public String getElementAt(int i) { return tableNameList.get(i); }
                });
            }
        });
        tableNameFilterTextField.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                ListModel model = tableNamesJList.getModel();
                if(model.getSize() >= 1) {
                  Object selectedValue = tableNamesJList.getSelectedValue();
View Full Code Here

        campoFiltro.setBounds(100, 90, 470, 30); // x, y, ancho, alto
        campoFiltro.setText("");
        campoFiltro.setEditable(true);
        campoFiltro.setVisible(true);
       
        campoFiltro.addActionListener(new ActionListener() {
     
      public void actionPerformed(ActionEvent e) {
       
        // Al introducir algo se filtran los metodos por un like desde la izquierda
        String valor = e.getActionCommand();
View Full Code Here

        panel.add(botonAceptar);
       
        filtro = new JTextField();
        filtro.setBounds(100, 5, 180, 30); // x, y, ancho, alto
       
        filtro.addActionListener(new ActionListener() {
     
      public void actionPerformed(ActionEvent e) {
       
        ResultSet rs;
        String[] modulesAux    = null;
View Full Code Here

        campoBuscar.setSize(300, 30);
        campoBuscar.setBounds(140, 90, 300, 30); // x, y, ancho, alto
        campoBuscar.setEditable(true);
        campoBuscar.setVisible(true);
       
        campoBuscar.addActionListener(new ActionListener() {
     
      public void actionPerformed(ActionEvent e) {
       
        Connection con = null;
       
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.