01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ExitAction.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.gui.ui.actions;
09:
10: import java.awt.event.InputEvent;
11: import java.awt.event.KeyEvent;
12: import javax.swing.*;
13:
14: import com.uwyn.rife.gui.ui.commands.Exit;
15: import com.uwyn.rife.swing.JAction;
16: import com.uwyn.rife.tools.Localization;
17:
18: public class ExitAction extends JAction {
19: public ExitAction() {
20: super (new Exit(),
21: Localization.getString("rife.menu.file.exit"),
22: Localization.getChar("rife.menu.file.exit.mnemonic"),
23: KeyStroke.getKeyStroke(KeyEvent.VK_Q,
24: InputEvent.CTRL_MASK, false));
25: }
26: }
|