Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1686 > unrolled thread

Detecting Focus In A Tabb

Started by"Hal Vaughan" <hal.vaughan@THRWHITE.remove-dii-this>
First post2011-04-27 15:34 +0000
Last post2011-04-27 15:34 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  Detecting Focus In A Tabb "Hal Vaughan" <hal.vaughan@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
    Re: Detecting Focus In A "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

#1686 — Detecting Focus In A Tabb

From"Hal Vaughan" <hal.vaughan@THRWHITE.remove-dii-this>
Date2011-04-27 15:34 +0000
SubjectDetecting Focus In A Tabb
Message-ID<GLudnduP67v9_svbnZ2dnUVZ_g-dnZ2d@comcast.com>
  To: comp.lang.java.gui
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#1688 — Re: Detecting Focus In A

From"Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this>
Date2011-04-27 15:34 +0000
SubjectRe: Detecting Focus In A
Message-ID<46572cda$1@dnews.tpgi.com.au>
In reply to#1686
  To: comp.lang.java.gui

"Hal Vaughan" <hal@thresholddigital.com> wrote in message 
news:GLudnduP67v9_svbnZ2dnUVZ_g-dnZ2d@comcast.com...
>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?


ChangeListener()

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web