Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2007

Tip: Looking for answers? Try searching our database.

Detecting Focus In A Tabbed Pane

Thread view: 
Hal Vaughan - 25 May 2007 05:17 GMT
I have a superclass, guiModule, that is a super class for several panes I'm
using that are in a JTabbedPane.  In the superclass I have specified that
it implements FocusListener and have the focusGained() method in it.  I
would have thought that when I selected a particular tab on the
JTabbedPane, that particular class would have the focusGained() method
called, but that isn't happening.

What do I use or what kind of listener do I need so each panel can detect
when it is selected by clicking on the corresponding tab?

Thanks!

Hal
Michael Dunn - 25 May 2007 19:36 GMT
>I have a superclass, guiModule, that is a super class for several panes I'm
> using that are in a JTabbedPane.  In the superclass I have specified that
[quoted text clipped - 5 lines]
> What do I use or what kind of listener do I need so each panel can detect
> when it is selected by clicking on the corresponding tab?

ChangeListener()


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.