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.
I need my program to listen for an enter keypress at a certain point, but I want it to listen for it regardless of what component is in focus. I know how to do this for a certain component, like component.addKeyListener(this), but that only captures the keypress when that component is in focus. I need the program to capture it regardless of which component is in focus.