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


Groups > comp.lang.java.gui > #2580

Re: Component Focus

From "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Subject Re: Component Focus
Message-ID <E8SdneFiztXWJZ7anZ2dnUVZ_g6dnZ2d@wavecable.com> (permalink)
Newsgroups comp.lang.java.gui
References <1191425748.265173.17620@g4g2000hsf.googlegroups.com>
Date 2011-04-27 15:39 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui,comp.l
Jason Cavett wrote:
> Is there a way to track component focus across an entire GUI?  What I
> am trying to do is keep toolbars updated (by updating their
> corresponding actions) depending on what component is currently in
> focus.
> 
> So...
> 
> 
> MainView - this is parent view that holds all project and
> propertyviews for my application.  MainView contains a method called
> "updateActions" which, when called, turns actions on and off depending
> on the current status of the application.
> 
> What I'd like to have happen is that, when any focus change occurs,
> the updateActions method is called.  Everything I've tried so far is
> not accomplishing this.  Any insight provided would be much
> appreciated.
> 
> 
> Thanks
> 
Has everything you've tried included adding a focus listener on all your 
components?

-- 
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

---
 * 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

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Component Focus "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
  Re: Component Focus "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
    Re: Component Focus "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
  Re: Component Focus "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
    Re: Component Focus "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
      Re: Component Focus "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

csiph-web