This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Using Windows ME. When a JTextField has focus and I use alt *(anything) to switch to another component the mnemonic character is typed into the field that has the focus. yuk! How can I avoid this? (Creating a JDialog for SCJD exam and trying to stick with recommened Look and Feel conventions). Thanks, jc
Well, I guess you could put a KeyListener on the input fields and watch for the key combination and consume them if found. Seems like there should be a better way.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Oct 26, 2001
Thanks Cindy, but, if I consume the KeyStroke is the "jump" to the field identified by the label's mnemonic still going to occur? This caveat "Note: Due to bug # 4186905, text components don't forward key-typed events in JDK 1.2 for Win32." appears in the Java Tutorial. Am I bumping into that? Thanks for the response. Great site. jc