Example usage for java.awt Event PGUP

List of usage examples for java.awt Event PGUP

Introduction

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

Prototype

int PGUP

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

Click Source Link

Document

The Page Up 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";
    }// w ww  .  ja v  a  2 s  .  c  o m
    return "Unknown Function Key";
}