Example usage for java.awt Event F2

List of usage examples for java.awt Event F2

Introduction

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

Prototype

int F2

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

Click Source Link

Document

The F2 function 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 .java2  s.c o m
    return "Unknown Function Key";
}