If anyone can throw a good suggestion my way, i 'd love it.
I'm coding a piano that uses Swing and the piano keys are JButtons. A standard computer keyboard can be used to play notes by linking up to the JButtons. I'm only using two buttons for a prototype. So far I've implemented my key listeners and properly and when I hit 'c' on my keyboard, the responding JButton lights up and the MIDI note plays. But to use to the other button, I have to 'TAB' across before the same thinig will work with 'd'.
As far as I can tell, its something to do with requestFocus or setFocus, or something like that. I'm not to up on Focus Management and I just can't get my head around it.
Any help would be great.