I'm a bit baffled by my code. When the frame loads up I have to press tab once, before I can get the app to recognise a KeyEvent. Once released, I have to tab again before the key is recognised.
Ideally I would like a response, without having to stroke the tab key 1st.
I guess its something to do with the focus. I do have other components in the frame, but I want the whole thing to respond to keystrokes. I thought I'd got around this by adding the KeyAdapter to the frame.