JTabbedPane and focus issues
Maybe I'm just doing things a bit different than anyone else and I'm all wrong. Here's the deal: I have a focus traversal policy for each frame in my app. When I used a personally-created subclass of JTabbedPane it was trying to set focus on a component on a non-visible tab. So I fixed that problem by not allowing focus to go to non-visible tab panels.
Now I want, on a tab change, to set focus on the first focusable component of the new tab. But at the time I get a change event to hook this call the old tab is still visible and the second one isn't.
So my first fix, which prevents focus from going to components on non-visible tabs, is stopping me from setting focus to anything on the tab that is about to become visible.
Is there another event that I can hook into AFTER the tab change has actually taken place? Or am I taking a completely wrong approach and does anyone smarter than me have a suggestion on how they are accomplishing both the above goals?
Thanks in advance for your consideration!