FULL PRODUCT VERSION :
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
jdk1.6.0_18 / XP
A DESCRIPTION OF THE PROBLEM :
This minimal html/applet reproduces a bug that was introduced some time after j2sdk1.4.2_17:
<b>document.MYFORM.MYINPUT.focus() fails simply because an applet (<i>any applet</i>) exists.</b>
If the applet is removed, it works.
If I build X.java with j2sdk1.4.2_17, it works.
The problem happens when I build it with jdk1.6.0_18.
In IE, the focus is simply "elsewhere".
FireFox actually places the cursor in the field, but entering keys just results in beeps
(one must click outside the field and then in it again).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
simply display http://OmnipotenceSoftware.com/javabug.htm
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
i expect to be able to type in the form input !
see desc
ACTUAL -
i cannot type in the form input !
see desc
ERROR MESSAGES/STACK TRACES THAT OCCUR :
none - just beeps.
see desc
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.applet.Applet;
public class X extends Applet
{
public synchronized void init()
{
addFocusListener(this);
}
public synchronized void start()
{
}
public synchronized void stop()
{
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
If I build X.java with j2sdk1.4.2_17, it works fine.
Release Regression From : 1.4.2_17
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
jdk1.6.0_18 / XP
A DESCRIPTION OF THE PROBLEM :
This minimal html/applet reproduces a bug that was introduced some time after j2sdk1.4.2_17:
<b>document.MYFORM.MYINPUT.focus() fails simply because an applet (<i>any applet</i>) exists.</b>
If the applet is removed, it works.
If I build X.java with j2sdk1.4.2_17, it works.
The problem happens when I build it with jdk1.6.0_18.
In IE, the focus is simply "elsewhere".
FireFox actually places the cursor in the field, but entering keys just results in beeps
(one must click outside the field and then in it again).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
simply display http://OmnipotenceSoftware.com/javabug.htm
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
i expect to be able to type in the form input !
see desc
ACTUAL -
i cannot type in the form input !
see desc
ERROR MESSAGES/STACK TRACES THAT OCCUR :
none - just beeps.
see desc
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.applet.Applet;
public class X extends Applet
{
public synchronized void init()
{
addFocusListener(this);
}
public synchronized void start()
{
}
public synchronized void stop()
{
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
If I build X.java with j2sdk1.4.2_17, it works fine.
Release Regression From : 1.4.2_17
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
- duplicates
-
JDK-6234219 Do not set initial focus on an applet during startup if applet is targeted for JDK 1.1/1.2
- Resolved
- relates to
-
JDK-4984794 Invisible applet steals focus from HTML form field (MSIE, Sun plug-in only)
- Closed