Example usage for java.awt Event DOWN

List of usage examples for java.awt Event DOWN

Introduction

In this page you can find the example usage for java.awt Event DOWN.

Prototype

int DOWN

To view the source code for java.awt Event DOWN.

Click Source Link

Document

The Down Arrow key, a non-ASCII action key.

Usage

From source file:EventTester.java

private String function_key_name(int key) {
    switch (key) {
    case Event.HOME:
        return "Home";
    case Event.END:
        return "End";
    case Event.PGUP:
        return "Page Up";
    case Event.PGDN:
        return "Page Down";
    case Event.UP:
        return "Up";
    case Event.DOWN:
        return "Down";
    case Event.LEFT:
        return "Left";
    case Event.RIGHT:
        return "Right";
    case Event.F1:
        return "F1";
    case Event.F2:
        return "F2";
    case Event.F3:
        return "F3";
    case Event.F4:
        return "F4";
    case Event.F5:
        return "F5";
    case Event.F6:
        return "F6";
    case Event.F7:
        return "F7";
    case Event.F8:
        return "F8";
    case Event.F9:
        return "F9";
    case Event.F10:
        return "F10";
    case Event.F11:
        return "F11";
    case Event.F12:
        return "F12";
    }/*from ww w.j  a v a 2s .  com*/
    return "Unknown Function Key";
}