public interface ActionListener extends EventListener
addActionListener方法。当动作发生时,该对象的
actionPerformed方法被调用。
ActionEvent,
How to Write an Action Listener
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
当一个动作发生时调用。
|
void actionPerformed(ActionEvent e)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.