Class VirtualKeys

java.lang.Object
org.bzdev.swing.keys.VirtualKeys

public class VirtualKeys extends Object
Class to look up key events by name. The class KeyEvent defines a large number of static int constants with names that begin with the string "VK_". This class provides a single method that allows these constants to be looked up at runtime by name.

One use of this class is for localization, where one might want to include key names in a properties file associated with a resource bundle.

  • Constructor Details

    • VirtualKeys

      public VirtualKeys()
  • Method Details