java.awt.event

Class ActionEvent

Implemented Interfaces:
Serializable

public class ActionEvent
extends AWTEvent

A semantic event which indicates that a component-defined action occurred. This high-level event is generated by a component (such as a Button) when the component-specific action occurs (such as being pressed). The event is passed to every every ActionListener object that registered to receive such events using the component's addActionListener method.

Note: To invoke an ActionEvent on a Button using the keyboard, use the Space bar.

The object that implements the ActionListener interface gets this ActionEvent when the event occurs. The listener is therefore spared the details of processing individual mouse movements and mouse clicks, and can instead process a "meaningful" (semantic) event like "button pressed".

Since:
1.1
See Also:
ActionListener, Tutorial: Java 1.1 Event Model, Reference: The Java Class Libraries (update file), Serialized Form

Field Summary

static int
ACTION_FIRST
The first number in the range of ids used for action events.
static int
ACTION_LAST
The last number in the range of ids used for action events.
static int
ACTION_PERFORMED
This event id indicates that a meaningful action occured.
static int
ALT_MASK
The alt modifier.
static int
CTRL_MASK
The control modifier.
static int
META_MASK
The meta modifier.
static int
SHIFT_MASK
The shift modifier.

Fields inherited from class java.awt.AWTEvent

ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK, consumed, id

Fields inherited from class java.util.EventObject

source

Constructor Summary

ActionEvent(Object source, int id, String command)
Constructs an ActionEvent object.
ActionEvent(Object source, int id, String command, int modifiers)
Constructs an ActionEvent object with modifier keys.
ActionEvent(Object source, int id, String command, long when, int modifiers)
Constructs an ActionEvent object with the specified modifier keys and timestamp.

Method Summary

String
getActionCommand()
Returns the command string associated with this action.
int
getModifiers()
Returns the modifier keys held down during this action event.
long
getWhen()
Returns the timestamp of when this event occurred.
String
paramString()
Returns a parameter string identifying this action event.

Methods inherited from class java.awt.AWTEvent

consume, getID, isConsumed, paramString, setSource, toString

Methods inherited from class java.util.EventObject

getSource, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

ACTION_FIRST

public static final int ACTION_FIRST
The first number in the range of ids used for action events.
Field Value:
1001
Usages and Demos :

View More Examples of ActionEvent.ACTION_FIRST
   1:     {
   2:         ActionEvent event = new ActionEvent(this,ActionEvent.ACTION_FIRST,"hi");
   3:         Enumeration e = listener.elements();
   4:         while (e.hasMoreElements())
   5:         {

View Full Code Here
   1:     {
   2:         ActionEvent event = new ActionEvent(this,ActionEvent.ACTION_FIRST,"hi");
   3:         Enumeration e = listener.elements();
   4:         while (e.hasMoreElements())
   5:         {

View Full Code Here
   1:                   g2d.dispatchEvent(
   2:                     new ActionEvent(this, ActionEvent.ACTION_FIRST, "action"));
   3: 
   4:                   this.hide();
   5:                   return true;

View Full Code Here
   1:                         {
   2:                             ActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_FIRST, "reset");
   3:                             actionListener.actionPerformed(ae);
   4:         ...
   5:                 {
   6:                     ActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_FIRST, "reset");
   7:                     actionListener.actionPerformed(ae);
   8:                 }
   9:                 GlobalData.getGlobalData().errorMsg("DAV Interpreter:\n\n" + res.getStatusCode() + " " + res.getReasonLine());

View Full Code Here

ACTION_LAST

public static final int ACTION_LAST
The last number in the range of ids used for action events.
Field Value:
1001
Usages and Demos :

View More Examples of ActionEvent.ACTION_LAST
   1:       _listener.actionPerformed(new ActionEvent(this,
   2:                                                 ActionEvent.ACTION_LAST + 1,
   3:                                                 "interrupted"));
   4:     }
   5:   }

View Full Code Here

ACTION_PERFORMED

public static final int ACTION_PERFORMED
This event id indicates that a meaningful action occured.
Field Value:
1001
Usages and Demos :

View More Examples of ActionEvent.ACTION_PERFORMED
   1:       {
   2:          action.actionPerformed(new ActionEvent(com.u2d.view.wings.list.PageScrollBar.this, ActionEvent.ACTION_PERFORMED, "postTip"));
   3:       }
   4:    }

View Full Code Here
   1:     {
   2:         ActionEvent a=new ActionEvent(BangBean2.this,ActionEvent.ACTION_PERFORMED,null);
   3:         ArrayList lv=null;
   4:         synchronized(this)
   5:         {

View Full Code Here
   1:       {
   2:          action.actionPerformed(new ActionEvent(PageScrollBar.this, ActionEvent.ACTION_PERFORMED, "postTip"));
   3:       }
   4:    }

View Full Code Here
   1:         if ((delegate != null) && (getTarget() != null)) {
   2:             delegate.actionPerformed(new ActionEvent(getTarget(), ActionEvent.ACTION_PERFORMED, VISIT_ACTION));
   3:         }
   4:         
   5:     }

View Full Code Here
   1:             notifyActionListeners(
   2:               new ActionEvent(DataFrameExpressionPanel.this, ActionEvent.ACTION_PERFORMED, REQUEST_NEW_EXPRESSION_ACTION)
   3:             );
   4:         ...
   5:             notifyActionListeners(
   6:               new ActionEvent(DataFrameExpressionPanel.this, ActionEvent.ACTION_PERFORMED, REQUEST_REMOVE_EXPRESSION_ACTION)
   7:             );
   8:           }
   9:           textChanging = false;

View Full Code Here

ALT_MASK

public static final int ALT_MASK
The alt modifier. An indicator that the alt key was held down during the event.
Field Value:
8
Usages and Demos :

View More Examples of ActionEvent.ALT_MASK
   1:                 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() +
   2:                 ActionEvent.SHIFT_MASK + ActionEvent.ALT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.STRUCTURED_SEARCH_MULTIPLE_DLG +
   5:                 "ToolTip"));

View Full Code Here
   1:                 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() +
   2:                 ActionEvent.ALT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.PLAYBACK_RATE_TOGGLE +
   5:                 "ToolTip"));

View Full Code Here
   1:                 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() +
   2:                 ActionEvent.ALT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.PLAYBACK_VOLUME_TOGGLE +
   5:                 "ToolTip"));

View Full Code Here
   1:         menuItem.setAccelerator(KeyStroke.getKeyStroke(
   2:                 KeyEvent.VK_1, ActionEvent.ALT_MASK));
   3:         menuItem.getAccessibleContext().setAccessibleDescription(
   4:         ...
   5:         menuItem.setAccelerator(KeyStroke.getKeyStroke(
   6:                 KeyEvent.VK_2, ActionEvent.ALT_MASK));
   7:         submenu.add(menuItem);
   8: 
   9:         menuItem = new JMenuItem("Another item");

View Full Code Here
   1:         menuItem.setAccelerator(KeyStroke.getKeyStroke(
   2:                 KeyEvent.VK_1, ActionEvent.ALT_MASK));
   3:         menuItem.getAccessibleContext().setAccessibleDescription(
   4:         ...
   5:         menuItem.setAccelerator(KeyStroke.getKeyStroke(
   6:                 KeyEvent.VK_2, ActionEvent.ALT_MASK));
   7:         menuItem.addActionListener(this);
   8:         submenu.add(menuItem);

View Full Code Here

CTRL_MASK

public static final int CTRL_MASK
The control modifier. An indicator that the control key was held down during the event.
Field Value:
2
Usages and Demos :

View More Examples of ActionEvent.CTRL_MASK
   1:     fcmi.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O,
   2:                              ActionEvent.CTRL_MASK ) );
   3:     add( fcmi );
   4:     add( new FileExitMI() );
   5:     }

View Full Code Here
   1:     g_tfmi.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F,
   2:                                ActionEvent.CTRL_MASK ) );
   3:     g_tfmi.setEnabled( false );
   4:         ...
   5:     g_tscmi.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_S,
   6:                             ActionEvent.CTRL_MASK ) );
   7:     g_tscmi.setEnabled( false );
   8:     add( g_tscmi );
   9:     }

View Full Code Here
   1:         KeyStroke ks = KeyStroke.getKeyStroke(KeyEvent.VK_A,
   2:                 ActionEvent.CTRL_MASK);
   3:         addConstraintAction.putValue(Action.ACCELERATOR_KEY, ks);
   4:         ...
   5: 
   6:         ks = KeyStroke.getKeyStroke(KeyEvent.VK_D, ActionEvent.CTRL_MASK);
   7:         deleteConstraintAction.putValue(Action.ACCELERATOR_KEY, ks);
   8: 
   9:         makeLayout();

View Full Code Here
   1:         menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X,
   2:                 ActionEvent.CTRL_MASK));
   3:         menuItem.setMnemonic(KeyEvent.VK_T);
   4:         ...
   5:         menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C,
   6:                 ActionEvent.CTRL_MASK));
   7:         menuItem.setMnemonic(KeyEvent.VK_C);
   8:         ...
   9:         menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V,
  10:                 ActionEvent.CTRL_MASK));
  11:         menuItem.setMnemonic(KeyEvent.VK_P);

View Full Code Here

META_MASK

public static final int META_MASK
The meta modifier. An indicator that the meta key was held down during the event.
Field Value:
4

SHIFT_MASK

public static final int SHIFT_MASK
The shift modifier. An indicator that the shift key was held down during the event.
Field Value:
1
Usages and Demos :

View More Examples of ActionEvent.SHIFT_MASK
   1:     hide .setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,
   2:                          ActionEvent.SHIFT_MASK));
   3:     show .setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,
   4:         ...
   5:                          ActionEvent.SHIFT_MASK));
   6:     edit .setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,
   7:         ...
   8:                          ActionEvent.SHIFT_MASK));

View Full Code Here
   1:         putValue(Action.ACCELERATOR_KEY,
   2:             KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, ActionEvent.SHIFT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.SECOND_LEFT + "ToolTip"));
   5:         putValue(DEFAULT, "SECOND_LEFT");

View Full Code Here
   1:         putValue(Action.ACCELERATOR_KEY,
   2:             KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, ActionEvent.SHIFT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.SECOND_RIGHT + "ToolTip"));
   5:         putValue(DEFAULT, "SECOND_RIGHT");

View Full Code Here
   1:                 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() +
   2:                 ActionEvent.SHIFT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.SEARCH_MULTIPLE_DLG +
   5:                 "ToolTip"));

View Full Code Here
   1:                 Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() +
   2:                 ActionEvent.SHIFT_MASK));
   3:         putValue(SHORT_DESCRIPTION,
   4:             ElanLocale.getString(ELANCommandFactory.PIXEL_LEFT + "ToolTip"));
   5:         putValue(DEFAULT, "PIXEL_LEFT");

View Full Code Here

Constructor Details

ActionEvent

public ActionEvent(Object source,
                   int id,
                   String command)
Constructs an ActionEvent object.

Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null. A null command string is legal, but not recommended.

Parameters:
source - the object that originated the event
id - an integer that identifies the event
command - a string that may specify a command (possibly one of several) associated with the event
Throws:
IllegalArgumentException - if source is null
Usages and Demos :

View More Examples of ActionEvent(Object source,int id,String command)
   1:     {
   2:         ActionEvent a=new ActionEvent(BangBean2.this,ActionEvent.ACTION_PERFORMED,null);
   3:         ArrayList lv=null;
   4:         synchronized(this)
   5:         {

View Full Code Here
   1:       {
   2:          action.actionPerformed(new ActionEvent(PageScrollBar.this, ActionEvent.ACTION_PERFORMED, "postTip"));
   3:       }
   4:    }

View Full Code Here
   1:                 if (loadActionListener != null)
   2:                     loadActionListener.actionPerformed(new ActionEvent(AutoScrollingPanel.this, 1, "pageLoaded"));
   3:                 JEditorPane source = (JEditorPane)evt.getSource();
   4:                 source.removePropertyChangeListener(this);
   5:             }

View Full Code Here
   1:             notifyActionListeners(
   2:               new ActionEvent(DataFrameExpressionPanel.this, ActionEvent.ACTION_PERFORMED, REQUEST_NEW_EXPRESSION_ACTION)
   3:             );
   4:         ...
   5:             notifyActionListeners(
   6:               new ActionEvent(DataFrameExpressionPanel.this, ActionEvent.ACTION_PERFORMED, REQUEST_REMOVE_EXPRESSION_ACTION)
   7:             );
   8:           }
   9:           textChanging = false;

View Full Code Here
   1:         System.out.println("testActionPerformed");
   2:         tss.actionPerformed(new ActionEvent("move", 1, "move"));
   3:     }
   4: 
   5:     public void testMouseEntered() {

View Full Code Here

ActionEvent

public ActionEvent(Object source,
                   int id,
                   String command,
                   int modifiers)
Constructs an ActionEvent object with modifier keys.

Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null. A null command string is legal, but not recommended.

Parameters:
source - the object that originated the event
id - an integer that identifies the event
command - a string that may specify a command (possibly one of several) associated with the event
modifiers - the modifier keys held down during this action
Throws:
IllegalArgumentException - if source is null
Usages and Demos :

View More Examples of ActionEvent(Object source,int id,String command,int modifiers)
   1:   private void initialize() {
   2:     standardAction=new ActionEvent(this, 0, "", STANDARD_ACTION);
   3:         ...
   4:     acceleratedAction=new ActionEvent(this, 0, "", ACCELERATED_ACTION);
   5: 
   6:     timer=new Timer(tickLength, new ActionListener() {
   7:       public void actionPerformed(ActionEvent e) {

View Full Code Here
   1:                 getTabbedUI().getCloseAction().actionPerformed
   2:                     (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
   3:             }
   4:         });

View Full Code Here
   1:                 getTabbedUI().getCloseAction().actionPerformed
   2:                     (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
   3:             }
   4:         });

View Full Code Here
   1:             doubleClickListener.actionPerformed(
   2:                 new ActionEvent(this, 0, "table_dblclick", e.getModifiers())
   3:             );
   4:         }
   5:     }

View Full Code Here

ActionEvent

public ActionEvent(Object source,
                   int id,
                   String command,
                   long when,
                   int modifiers)
Constructs an ActionEvent object with the specified modifier keys and timestamp.

Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null. A null command string is legal, but not recommended.

Parameters:
source - the object that originated the event
id - an integer that identifies the event
command - a string that may specify a command (possibly one of several) associated with the event
when - the time the event occurred
modifiers - the modifier keys held down during this action
Throws:
IllegalArgumentException - if source is null
Since:
1.4
Usages and Demos :

View More Examples of ActionEvent(Object source,int id,String command,long when,int modifiers)
   1:     ActionEvent actionEvent = 
   2:         new ActionEvent(text, ActionEvent.ACTION_PERFORMED, actionName, eventTime, eventMods);
   3:     actionMap.get(actionName).actionPerformed(actionEvent);
   4:     }

View Full Code Here

Method Details

getActionCommand

public String getActionCommand()
Returns the command string associated with this action. This string allows a "modal" component to specify one of several commands, depending on its state. For example, a single button might toggle between "show details" and "hide details". The source object and the event would be the same in each case, but the command string would identify the intended action.

Note that if a null command string was passed to the constructor for this ActionEvent, this this method returns null.

Returns:
the string identifying the command for this event
Usages and Demos :

View More Examples of getActionCommand()
   1: 
   2: import java.awt.event.ActionEvent;
   3: 
   4:         ...
   5: 
   6:     public void actionPerformed(ActionEvent e) {
   7:         TransferHandler .getCopyAction() .actionPerformed(
   8:         ...
   9:             new ActionEvent(getCurrentGraph(), e.getID() , e.getActionCommand() ));

View Full Code Here
   1: import java.awt.*;
   2: import java.awt.event.ActionEvent;
   3: import java.awt.event.ActionListener;
   4:         ...
   5: 
   6:     public void actionPerformed(ActionEvent e) {
   7:         ...
   8:     String     command=e.getActionCommand();
   9:     String     tmp=name.getText();
  10:         ...
  11:         System.err.println("UserInfoDialog.actionPerfomed(): unknown action " +
  12:                            e.getActionCommand());

View Full Code Here
   1: 
   2:   public void actionPerformed(ActionEvent e)
   3:   {
   4:         ...
   5:       ((ActionListener)i.next()).
   6:         actionPerformed(new ActionEvent(this, e.getID(), e.getActionCommand()));
   7:     }
   8:   }

View Full Code Here
   1: 
   2: import java.awt.event.ActionEvent;
   3: 
   4:         ...
   5: 
   6:     public void actionPerformed(ActionEvent e) {
   7:         TransferHandler.getCutAction().actionPerformed(
   8:         ...
   9:             new ActionEvent(getCurrentGraph(), e.getID() , e.getActionCommand() ));

View Full Code Here
   1: 
   2:   public void actionPerformed(ActionEvent e) {
   3:     String lnfName = null;
   4:         ...
   5:     if (e.getActionCommand().equals("Mac")) {
   6:       lnfName = "com.apple.mrj.swing.MacLookAndFeel";
   7:         ...
   8:     } else if (e.getActionCommand().equals("Metal")) {
   9:       lnfName = "javax.swing.plaf.metal.MetalLookAndFeel";
  10:         ...
  11:     } else if (e.getActionCommand().equals("Motif")) {

View Full Code Here

getModifiers

public int getModifiers()
Returns the modifier keys held down during this action event.
Returns:
the bitwise-or of the modifier constants
Usages and Demos :

View More Examples of getModifiers()
   1: import javax.swing.*;
   2: import java.awt.event.ActionEvent;
   3: import java.awt.event.ActionListener;
   4:         ...
   5: 
   6:     protected void fireActionPerformed(ActionEvent e)
   7:     {
   8:         ...
   9:         e = new ActionEvent(e.getSource(),e.getID(), command, e.getWhen(),e.getModifiers());
  10:         super.fireActionPerformed(e);

View Full Code Here
   1: 
   2:     public void actionPerformed(ActionEvent e) {
   3:     displayArea.setText("");
   4:         ...
   5:     int keyCode = e.getKeyCode();
   6:     int modifiers = e.getModifiers();
   7: 
   8:     if (Character.isISOControl(c)) {
   9:         charString = "key character = "

View Full Code Here
   1: 
   2:     public void actionPerformed(ActionEvent e) {
   3:         displayArea.setText("");
   4:         ...
   5:         int keyCode = e.getKeyCode();
   6:         int modifiers = e.getModifiers();
   7: 
   8:         if (Character.isISOControl(c)) {
   9:             charString = "key character = "

View Full Code Here
   1: 
   2: import java.awt.event.ActionEvent;
   3: import java.util.HashMap;
   4:         ...
   5: 
   6:         public void actionPerformed(ActionEvent e) {
   7:             delegatee.actionPerformed(createActionEvent(e));
   8:         ...
   9: 
  10:         private ActionEvent createActionEvent(ActionEvent e) {
  11:             if (target != null) {
  12:         ...
  13:                 return new ActionEvent(target, e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers());

View Full Code Here
   1:     
   2:     public void actionPerformed(ActionEvent evt)
   3:     {
   4:         ...
   5:         arrowActionListener.actionPerformed(
   6:             new ActionEvent(this,
   7:         ...
   8:                 ActionEvent.ACTION_PERFORMED,
   9:                 evt.getActionCommand(),
  10:         ...
  11:                 evt.getWhen(),
  12:                 evt.getModifiers()

View Full Code Here

getWhen

public long getWhen()
Returns the timestamp of when this event occurred. Because an ActionEvent is a high-level, semantic event, the timestamp is typically the same as an underlying InputEvent.
Returns:
this event's timestamp
Since:
1.4
Usages and Demos :

View More Examples of getWhen()
   1: import javax.swing.*;
   2: import java.awt.event.ActionEvent;
   3: import java.awt.event.ActionListener;
   4:         ...
   5: 
   6:     protected void fireActionPerformed(ActionEvent e)
   7:     {
   8:         ...
   9:         e = new ActionEvent(e.getSource(),e.getID(), command, e.getWhen(),e.getModifiers());
  10:         super.fireActionPerformed(e);

View Full Code Here
   1: 
   2: import java.awt.event.ActionEvent;
   3: import java.util.HashMap;
   4:         ...
   5: 
   6:         public void actionPerformed(ActionEvent e) {
   7:             delegatee.actionPerformed(createActionEvent(e));
   8:         ...
   9: 
  10:         private ActionEvent createActionEvent(ActionEvent e) {
  11:             if (target != null) {
  12:         ...
  13:                 return new ActionEvent(target, e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers());

View Full Code Here
   1:     
   2:     public void actionPerformed(ActionEvent evt)
   3:     {
   4:         ...
   5:         arrowActionListener.actionPerformed(
   6:             new ActionEvent(this,
   7:         ...
   8:                 ActionEvent.ACTION_PERFORMED,
   9:                 evt.getActionCommand(),
  10:         ...
  11:                 evt.getWhen(),

View Full Code Here
   1: import javax.swing.*;
   2: import java.awt.event.ActionEvent;
   3: import java.text.SimpleDateFormat;
   4:         ...
   5: 
   6:     public void actionPerformed(ActionEvent e)
   7:     {
   8:         ...
   9:         if (e.getSource()==pollTimer)
  10:             e = new ActionEvent(e.getSource(),e.getID(),"poll.progress", e.getWhen(),e.getModifiers());
  11:         super.actionPerformed(e);

View Full Code Here
   1:             System.out.print(" ("+evt.getX()+" "+evt.getY()+") w(");
   2:             System.out.println(evt.getWhen()+")");
   3:             System.out.print("m("+evt.getModifiers()+")"+" c(");
   4:         ...
   5:             System.out.print(" ("+evt.getX()+" "+evt.getY()+") w(");
   6:             System.out.println(evt.getWhen()+")");
   7:             System.out.print("m("+evt.getModifiers()+")"+" c(");
   8:         ...
   9:         TextListener, AdjustmentListener {
  10:         public void actionPerformed(ActionEvent evt) {
  11:             System.out.print(evt.getSource().getClass() + " ");

View Full Code Here

paramString

public String paramString()
Returns a parameter string identifying this action event. This method is useful for event-logging and for debugging.
Overrides:
paramString in interface AWTEvent
Returns:
a string identifying the event and its associated command