This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions


[SOLVED] String to KeyEvent

843807 Member Posts: 46,582
edited Jun 1, 2010 10:23AM in Abstract Window Toolkit (AWT)
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


This discussion has been closed.