This discussion is archived
3 Replies Latest reply: Jan 5, 2005 9:59 PM by camickr RSS

[JTabbedPane] get the tab index of a textfield

807596 Newbie
Currently Being Moderated
Hello,

I'm using a jTabbedPane to display data. On every tab I have several panels with JTextFields. I would like to know on wich index of the tabpane a textfield is located. So when a textfield is empty I can use tabpane.setSelectedIndex( i ) to set te focus to that tab.

Enyone any tips?

Greetings
Hans