Package java.awt.event

Examples of java.awt.event.ActionListener.actionPerformed()


  protected void fireActionPerformed()
  {
    final ActionListener l = al;
    if( l != null ) {
      l.actionPerformed( new ActionEvent( this, ActionEvent.ACTION_PERFORMED, null ));
    }
  }
 
  public void paintComponent( Graphics g )
  {
View Full Code Here


   
    while (iterator.hasNext())
    {
      listener = iterator.next();
     
      listener.actionPerformed(e);
    }
  }
}
View Full Code Here

   
    while (iterator.hasNext())
    {
      listener = iterator.next();
     
      listener.actionPerformed(e);
    }
  }
}
View Full Code Here

                  if (c != 0)
                  { // ignore null chars
                     ActionListener action = triggeredActions.get((char) c);
                     if (action != null)
                     {
                        action.actionPerformed(null);
                     }
                     else
                     {
                        putChar(c, true);
                     }
View Full Code Here

                if (openInEditorAction != null) {
                    SwingUtilities.invokeLater(new Runnable() {
                        @Override
                        public void run() {
                            if (!cancelToken.isCanceled()) {
                                openInEditorAction.actionPerformed(e);
                            }
                        }
                    });
                }
            }
View Full Code Here

            final ActionListener action = tryGetOpenLocationAction(javaExt.getProject(), frameInfo);
            if (action != null) {
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        action.actionPerformed(e);
                    }
                });
            }
        }
View Full Code Here

        setBorder(BorderFactory.createEmptyBorder(10,10,10,5));
        addControlListener(new ControlAdapter() {
            // dispatch an action event to the menu item
            public void itemClicked(VisualItem item, MouseEvent e) {
                ActionListener al = (ActionListener)item.get(ACTION);
                al.actionPerformed(new ActionEvent(item, e.getID(),
                    "click", e.getWhen(), e.getModifiers()));
            }
        });
       
        // text color function
View Full Code Here

            public void actionPerformed(ActionEvent ev)
            {
              for (int j=0;j<cancel_listeners.size();j++)
              {
                ActionListener listen = (ActionListener)cancel_listeners.get(j);
                listen.actionPerformed(ev);
              }
            }
          });
         
    this.okButton = new JButton("Print");
View Full Code Here

            public void actionPerformed(ActionEvent ev)
            {
              for (int j=0;j<ok_listeners.size();j++)
              {
                ActionListener listen = (ActionListener)ok_listeners.get(j);
                listen.actionPerformed(ev);
              }
            }
          });
   
    this.jobName = new JTextField("");
View Full Code Here

  public void fireCurrentButtonActionListeners() {
  if (currentButton != null && isEnabled()) {
    Action action = actions.get(currentButton);
    ActionListener listener = action.getListener();
    if (listener != null) {
    listener.actionPerformed(new ActionEvent(this,
      ActionEvent.ACTION_PERFORMED, ""));
    }
  }
  }
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.