Click to See Complete Forum and Search --> : How to use F1 in Java application


July 30th, 1999, 12:33 AM
How can I use function key F1 for specifing help of my java application.

Thanks

unicman
July 31st, 1999, 07:37 AM
U will have to add KeyListener to the component.
This in this KeyListener u will check for VK_F1 key. This should give u control on F1 key.

I'm not sure if just setting KeyListener for application or a panel in it will work. U might have to add listener to all components in the application.

- UnicMan
http://members.tripod.com/unicman