JDK-6386485 : Focus traversal problem with Java Applet on a html page (Solaris)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0u6
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: solaris
  • CPU: sparc
  • Submitted: 2006-02-16
  • Updated: 2018-07-31
  • Resolved: 2018-07-31
Related Reports
Relates :  
Description
When the focus moves into the applet, the focuse can not move out of the applet to other html elements on the html page, by using the TAB key. When the focus is out of the applet, it can not move into the applet by the TAB key. 

expected result: The focuse cycles through all elements on a html page by TAB key. 

See also CR 6334864.

Comments
Applets are deprecated.
31-07-2018

EVALUATION I wasn't able to check the behavior with FF3 and new Java Plugin (on linux). As for FF2 and old Java Plugin (also on linux) - I see focus can be traversed out of applet (with FF bugs about FOCUS_NEXT and FOCUS_PREV handling), but can't be traversed in. An interesting thing I don't see any FOCUS_IN events (with any details) sent by FF.
09-07-2008

EVALUATION Well there are two bugs filed against mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=339194 https://bugzilla.mozilla.org/show_bug.cgi?id=330411 So, the main cause of the problem is in mozilla and I postpone this bug until mozilla's ones will be evaluated/fixed. Also, I'd suggest to file separate bug against plugin so it calls registerListener() to enable XEmbed functionality.
26-05-2006

EVALUATION >As for tabbing out of applet (which works after we call registerListeners() on >embedded frame). For some reason Mozilla always sends focus to the same component >for both XEMBED_FOCUS_PREV and XEMBED_FOCUS_NEXT we send to it (need to check this >in mozilla sources) Currently in mozilla/firefox, XEMBED_FOCUS_PREV/XEMBED_FOCUS_NEXT is not handled. It sends the focus to the same component just because mozilla/firefox know java moves its focus out. And mozilla sends the focus to the original components. It's a bug in mozilla/firefox side. So please just send out the correct XEMBED_FOCUS_PREV/XEMBED_FOCUS_NEXT event. Foget about the mozilla for now.
16-05-2006

EVALUATION well, user can not tab into applet because mozile send us XEMBED_FOCUS_IN (detail = XEMBED_FOCUS_CURRENT) but we do nothing on this event assuming that this is because of activation and focus will be set in different place (we do expect detail to be either XEMBED_FOCUS_FIRST or XEMBED_FOCUS_LAST). It looks like we need to reconsider focus management here. As for tabbing out of applet (which works after we call registerListeners() on embedded frame). For some reason Mozilla always sends focus to the same component for both XEMBED_FOCUS_PREV and XEMBED_FOCUS_NEXT we send to it (need to check this in mozilla sources)
13-05-2006