I have a JFrame to which I add a JTabbedPane. I supervise the stateChanged event posted be the JTabbedPane. When a specifc tab becomes active - one that holds a collection of hierarchical arranged JPanels - I would like a specific JPanel, which is a descendant of this tab, to get the input focus. Unfortunately nothing I've tried so far will make that happen. Only after I click with the mouse into the panel it'll receive the input focus. Even calling the requestFocus() for the JPanel won't do any good! Any idea how to achieve my desired behaviour? Any comments welcome.
Thanks in advance