Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

[SOLVED] String to KeyEvent

843807Jun 1 2010 — edited Jun 1 2010
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

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 29 2010
Added on Jun 1 2010
2 comments
516 views