KeyboardFocusManager.getCurrentKeyboardFocusManager() will return the correct instance. Try playing with this and the FocusTraversalPolicy which determines which the next, previous, initial and first components are.
You should be able to use these to figure out the order and roots of your components and if need be force selection of the component you want.
HTH Regards, Ken
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com