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

RFE way to set focus manager per component

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.5
    • client-libs



      Name: el35337 Date: 06/01/98


      As it stands now, there's one focus manager per
      thread group, which means that components that
      want to implement their own focus managers without
      stepping on anyone else's have to be very careful
      about setting and resetting the shared focus
      manager.

      It seems to me that it would be more elegant (and
      easy to implement) to allow focus managers to be
      set at the JComponent level. When a key event
      occurred, the deepest component's focus manager,
      if any, would get the event. If the deepest
      component didn't have a focus manager, its
      containing parent's focus manager would get the
      event, and so on. The thread group's focus
      manager would get the event only if no component
      had specified a focus manager. (Most components
      would not specify a focus manager, so this branch
      would be taken most of the time.)
      (Review ID: 29655)
      ======================================================================

            hgajewsksunw Hania Gajewska (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: