2 Replies Latest reply on Jun 1, 2010 2:23 PM by 843807

    [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