2 Replies Latest reply: Jun 1, 2010 9:23 AM by 843807 RSS

    [SOLVED] String to KeyEvent

      My application is listening to KeyEvent.VK_F11.

      Now I want to put F11 in a properties file, but is it possible to get the KeyEvent from a String for example: "F11"?

      Is there a method for this or should iterate through the possible KeyEvents?

      Edit: I solved it by using KeyStroke instead of KeyEvent