Can you help on how will I know whose the active tab in JTabbedPane?

Can you help on how will I know whose the active tab in JTabbedPane?I just want to get the title of the tab.. Can you give me an idea or sample code toe get it. Thanks
[181 byte] By [Neosis_24a] at [2007-10-2 15:29:09]
# 1
You can loop through the panes and can find out which is the current focus owner. There is a method called isFocusOwner() which will return true/false
priya_g29@yahoo.coma at 2007-7-13 14:51:12 > top of Java-index,Desktop,Core GUI APIs...
# 2
Use a ChangeListener. An event will be fired whenever a tab is selected.
camickra at 2007-7-13 14:51:12 > top of Java-index,Desktop,Core GUI APIs...