1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.aequo.action;
14
15 import java.awt.event.ActionEvent;
16 import java.awt.event.KeyEvent;
17
18 import javax.swing.Action;
19 import javax.swing.KeyStroke;
20
21
22
23
24
25
26 public class ExitAction extends BaseAction {
27
28
29
30
31 public ExitAction() {
32 setName("Exit");
33 setDescription("Exit Aequo");
34 setMessage("Exit Aequo");
35 putValue(Action.MNEMONIC_KEY, KeyEvent.VK_X);
36 putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));
37 }
38
39
40
41
42
43
44
45
46 public void perform(ActionEvent e) {
47 System.exit(0);
48 }
49 }