Or rather, my program does. I'm supposedly revising someone else's working code, but the stuff I compile doesn't do quite the same thing the packaged version they did... not sure whether it's a version difference, or a compiler difference (I used both JDK 1.3.1 and JBuilder 2005) or a computer difference (In Java? Heaven forbid!) or the problem exists between chair and keyboard. ;)
The current problem I'm trying to address is a keyboard shortcuts class. It's being constructed, and attached to a Base (extends JWindow) class, and the Base is focusable, visible, and set as having focus, but none of the keyboard shortcuts respond. In fact, I have a System.out.println statement at the very start of the overridden KeyTyped class which doesn't print, even when I'm sure that I typed keys.
There's a program selector window that starts various different versions of Base, and for reasons unknown, after each subprogram starts, the program selector window pops up again (which is certainly not how the packaged version works. Even when I click on the window with the program I'm working with, the program selector comes to the front again. I minimize it to do the work with the subprogram, but I think it might still be grabbing the focus while minimized.
How would I determine who has focus, let alone make sure that Base keeps it until it's done? What else do you need to know?