JDK-4144270 : RFE way to set focus manager per component
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1998-06-01
  • Updated: 2001-01-12
  • Resolved: 2001-01-12
Related Reports
Duplicate :  
Description

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

Comments
PUBLIC COMMENTS Would like to be able to set a per-component focus policy.
2004-06-10

EVALUATION We can't make components any fatter by adding fields, but we should investigate whether adding an object property makes sense (since focus changing isn't performance sensitive). thomas.ball@Eng 1998-06-03 With the new merlin focus implementation, you can now define a focus manager on any Container. I believe this is what this rfe is asking for, so I am closing it as a duplicate of the focus enhancemnt bug id (4290675). hania.gajewska@Eng 2001-01-11
2001-01-11