JDK-6921946 : Applet steals Focus
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-02-01
  • Updated: 2016-07-26
  • Resolved: 2016-07-26
Description
FULL PRODUCT VERSION :
1.6

ADDITIONAL OS VERSION INFORMATION :
Windows XP

EXTRA RELEVANT SYSTEM CONFIGURATION :
Firefox 3, Internet Explorer 7

A DESCRIPTION OF THE PROBLEM :
A basic applet steals focus from a web page even if it does not contain any focusable components.

This becomes most obvious with a scrollable page.

In some cases, depending on browser, it is not even possible to use menu shortcut keys.



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Please use the JDK clock example to reproduce this with multiple browsers.

Test the ability to use the cursor keys to scroll the page, after initially loading it, and after re-loading it, without using the mouse.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
An applet should not steal focus unless such behavior is coded.
ACTUAL -
The applet steals focus.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Please refer to applet examples included in the JDK.
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
The workaround is to click with the mouse on an area of the page or the scroll bar. This is a major problem for any web site, because users don't click on pages unless they want to follow links etc..