Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tracking VK_TAB in JTextField



I'm trying to figure out how to intercept tabs in JTextField. I want them to operate as usual (to perform focus changes), but I need to know when a tab is pressed. Just tracking focus isn't sufficient (there are lots of reasons focus changes).

Some research has dug up Sun employees claiming that overriding processKeyEvent or processEvent will yield the tab event. But on the Mac this is not the case: it appears that Apple is stripping out tab and shift-tab at a much higher level. I imagine I can turn off tab as a focus-change key and then tabs will become available, but I want to keep it acting in that respect. Suggestions?

Sean

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.