FileDocCategorySizeDatePackage
ExitAction.javaAPI DocAndroid 1.5 API1469Wed May 06 22:41:10 BST 2009com.android.draw9patch.ui.action

ExitAction

public class ExitAction extends AbstractAction

Fields Summary
public static final String
ACTION_NAME
private JFrame
frame
Constructors Summary
public ExitAction(JFrame frame)


       
        putValue(NAME, "Quit");
        putValue(SHORT_DESCRIPTION, "Quit");
        putValue(LONG_DESCRIPTION, "Quit");
        putValue(MNEMONIC_KEY, KeyEvent.VK_Q);
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Q,
                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        this.frame = frame;
    
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

        frame.dispose();
        System.exit(0);