JDK-6568419 : initial_focus flag not working when an applet is compiled with 1.4 and run with 1.5
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2007-06-11
  • Updated: 2010-04-03
  • Resolved: 2007-12-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u15 b01Fixed
Related Reports
Relates :  
Description
When a user runs an applet having any component(a button or textField), a loss 
of focus happens after minimizing and maximizing the applet using TASKBAR BUTTON for applet.

This issue only reproducing when we are compiling the java file using 1.4 JDK 
and running the class using JDK 1.5_xx and 1.6. 

Step To Reproduce: 
1. Run the test case listed in the comments after compiling it in JDK 1.4 
2. Click on "FOcus Test" button to have intial focus on it. 
3. Using taskbar button for applet window, minimize it and then maximize it. 
4. Sometime you will see the intial focus is lost at the first clicks and 
sometimes after repeating step 3 twice or thrice, you would see the issue. 
 
If we compile the same class in JDK 1.5, it wont reproduce. 
 
This behaviour can be seen using textfield item also.

Comments
EVALUATION Changing the synopsis. I believe the initial_focus issue is the only one being affected by the 1.4 compilation therefore I'm changing the synopsis of this bug. The taskbar focus issue is now hadled under bug id 6593309.
20-09-2007