Action events
To handle the action events of MSketchPane, the java.awt.event.ActionListener interface must be implemented.
|
Source name |
Meaning |
|
"close" |
File/Close has been chosen, sketcher window should be closed. |
|
"transfer" |
The Transfer button on the General Toolbar has been clicked. |
Example:
sketchPane.addActionListener(this); ...public void actionPerformed(ActionEvent ev) { if("close".equals(ev.getActionCommand())) { dispose(); }}