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

Documentation errata

XMLWordPrintable

    • x86
    • windows_nt

      Name: gm110360 Date: 09/02/2003


      FULL PRODUCT VERSION :
      http://java.sun.com/j2se/1.4/docs/api/java/awt/doc-files/FocusSpec.html

      FULL OPERATING SYSTEM VERSION : N/A


      ADDITIONAL OPERATING SYSTEMS : N/A



      A DESCRIPTION OF THE PROBLEM :
      "FocusEvent and WindowEvent
      The AWT defines the following six event types central to
      the focus model in two different java.awt.event classes:

      WindowEvent.WINDOW_ACTIVATED: This event is dispatched to a
      Frame or Dialog (but never a Window which is not a Frame or
      Dialog) when it becomes the active Window.
      WindowEvent.WINDOW_GAINED_FOCUS: This event is dispatched
      to a Window when it becomes the focused Window. Only
      focusable Windows can receive this event.
      FocusEvent.FOCUS_GAINED: This event is dispatched to a
      Component when it becomes the focus owner. Only focusable
      Components can receive this event.
      FocusEvent.FOCUS_LOST: This event is dispatched to a
      Component when it is no longer the focus owner.
      WindowEvent.WINDOW_LOST_FOCUS: This event is dispatched to
      a Window when it is no longer the focused Window.
      WindowEvent.WINDOW_DEACTIVATED: This event is dispatched to
      a Frame or Dialog (but never a Window which is not a Frame
      or Dialog) when it is no longer the active Window.
      Event Delivery
      The events are dispatched in the order in which they are
      presented above. That is, if the user clicks on a focusable
      child Component a of an inactive Frame b, the following
      events will be dispatched and handled in order:

      b will receive a WINDOW_ACTIVATED event.
      Next, b will receive a WINDOW_GAINED_FOCUS event.
      Finally, a will receive a FOCUS_GAINED event.
      If the user later clicks on a focusable child Component c
      of another Frame d, the following events will be dispatched
      and handled in order:
      a will receive a FOCUS_LOST event.
      b will receive a WINDOW_LOST_FOCUS event.
      b will receive a WINDOW_DEACTIVATED event.
      d will receive a WINDOW_ACTIVATED event.
      d will receive a WINDOW_GAINED_FOCUS event.
      c will receive a FOCUS_GAINED event."

      Note statement "The events are dispatched in the order in
      which they are presented above." Also note list of events,
      and example of dispatch order. These orders do NOT agree,
      as indicated.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See referenced document

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 180952)
      ======================================================================

            son Oleg Sukhodolsky (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: