Java Swing Key Action getEscapeKeystroke()

Here you can find the source of getEscapeKeystroke()

Description

get Escape Keystroke

License

Open Source License

Declaration

public static KeyStroke getEscapeKeystroke() 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); you may

import java.awt.event.KeyEvent;
import javax.swing.*;

public class Main {
    public static KeyStroke getEscapeKeystroke() {
        return KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
    }/*from w  w w .ja va 2s  . c  o m*/
}

Related

  1. dispatchEvent(final KeyEvent ke, final Component comp)
  2. escapeKeyAction(JComponent component, javax.swing.AbstractAction abstractAction)
  3. formatKeyStroke(final KeyStroke keyStroke)
  4. getActionID(final Action a)
  5. getActionInstanceName(Action delegate)
  6. getKeyStroke(int i0, int i1)
  7. getKeystroke(int keyevent)
  8. getKeyStrokeCopy()
  9. getKeyStrokeRepresentation(KeyStroke ks)