Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4201038

Window.getFocusOwner() when inactive, LightweightDispatcher, AWTEventListener

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs
    • x86
    • windows_nt



      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)
      ======================================================================

            dmendenhsunw David Mendenhall (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: