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!

Java FX, TextField, Keyboard handling

904910Dec 14 2011 — edited Dec 14 2011
I need to look for specific characters that may be typed in a text field and perform an action accordingly. For example if the user hits F1 key while inside a textfield, i need to popup a different panel. I am using FXML to do the form layout. Please help mw with some example code. If I can set these functions at a global level (Scene) it would be even better way, for example no matter which ever text field use is on, I need to handle F1 key the same way.

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2012
Added on Dec 14 2011
4 comments
5,453 views