This content has been marked as final. Show 3 replies
I'm guessing that just setting focus on the text field doesn't cause the tab selection to change.
So here's a brute force way to do it:
a) find the parent container of the text field
b) use the tabbedPane.getComponentAt(..) method to compare the above component. When they are equal you now which tab contains the text field.