JDK-4201038 : Window.getFocusOwner() when inactive, LightweightDispatcher, AWTEventListener
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-01-06
  • Updated: 2000-10-04
  • Resolved: 2000-10-04
Related Reports
Duplicate :  
Description

Name: dbT83986			Date: 01/06/99


Hello,
one of the following three would help us with our
current application:
o  when a window is inactive, its getFocusOwner() method
   returns null.
   It would be nice, if there were a method w.isActive()
   and getFocusOwner() returns the value of the internal
   variable focusOwner 
o  AWTEventListener only gets at the events after they have
   been handled by dispatchEventImpl e.g. in class Window.
   It would be nice, if the call to the AWTEventListeners
   were in Component.dispatchEvent() instead of Component.
   dispatchEventImpl().
o  The LightweightDispatcher is hardwired inside Container
   and not accessible.
   It would be nice, if the class were public and subclassable,
   and if there were a method to set for a component
   the class it should use as LightweightDispatcher.
   Alternatively LightweightDispatcher could offer some
   methods to set or get values and to attach Listeners.
   We would have a Listener for Focus change events, so
   there was a chance to keep track of internal focus
   transfer. And we would like to get at the internal
   variable focus used e.g in setFocusRequest().

Thanks,
   -mg
(Review ID: 49116)
======================================================================

Comments
EVALUATION Currently planning to implement this functionality, or equivalent functionality, in the merlin focus enhancements. david.mendenhall@eng 1999-12-14
14-12-1999