-
Bug
-
Resolution: Fixed
-
P1
-
6
-
b59a
-
x86
-
windows_xp
-
Verified
FULL PRODUCT VERSION :
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b58)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b58, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Popup menus (from JComboBoxes or plain JPopupMenus) in JApplets show and then immediately hide on Windows, preventing the user from selecting an item. The problem does not occur if the popup is activated from a component in a JFrame that is created by the applet.
Focus appears to flicker between the popup menu and the browser window.
Since the popup doesn't appear until the mouse is released, holding down the mouse button is not an option.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a JComboBox in a JApplet and load it in Internet Explorer or Firefox 1.5 Beta 2 then try to select a different item in the combo box. A simple test case is included with inline instructions.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The popup menu should show and not hide until the user selects an option or clicks outside of the popup menu.
ACTUAL -
The popup menu appears and then immediately disappears.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Applet code:
import javax.swing.*;
public class Combos extends JApplet {
public void init() {
JComboBox combo = new JComboBox(new String[] {
"Item 1", "Item 2"
});
getContentPane().add(combo);
}
}
HTML code:
<html>
<head>
<title>Combo Test</title>
</head>
<body>
<h1>Steps To Reproduce</h1>
<ul>
<li>Click on the combo box in the applet below to reveal the popup menu.</li>
</ul>
<h1>Expected</h1>
<p>Popup menu shows and waits for the user to click on a different item.</p>
<h1>Actual</h1>
<p>Popup menu shows and immediately disappears, preventing the user from selecting an item.</p>
<applet name="comboTest" codebase="." code="Combos" width="200" height="100">
</applet>
</body>
</html>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Put the applet's interface into a JFrame and show it in that instead of directly in the browser.
Release Regression From : 5.0
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b58)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b58, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Popup menus (from JComboBoxes or plain JPopupMenus) in JApplets show and then immediately hide on Windows, preventing the user from selecting an item. The problem does not occur if the popup is activated from a component in a JFrame that is created by the applet.
Focus appears to flicker between the popup menu and the browser window.
Since the popup doesn't appear until the mouse is released, holding down the mouse button is not an option.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a JComboBox in a JApplet and load it in Internet Explorer or Firefox 1.5 Beta 2 then try to select a different item in the combo box. A simple test case is included with inline instructions.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The popup menu should show and not hide until the user selects an option or clicks outside of the popup menu.
ACTUAL -
The popup menu appears and then immediately disappears.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Applet code:
import javax.swing.*;
public class Combos extends JApplet {
public void init() {
JComboBox combo = new JComboBox(new String[] {
"Item 1", "Item 2"
});
getContentPane().add(combo);
}
}
HTML code:
<html>
<head>
<title>Combo Test</title>
</head>
<body>
<h1>Steps To Reproduce</h1>
<ul>
<li>Click on the combo box in the applet below to reveal the popup menu.</li>
</ul>
<h1>Expected</h1>
<p>Popup menu shows and waits for the user to click on a different item.</p>
<h1>Actual</h1>
<p>Popup menu shows and immediately disappears, preventing the user from selecting an item.</p>
<applet name="comboTest" codebase="." code="Combos" width="200" height="100">
</applet>
</body>
</html>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Put the applet's interface into a JFrame and show it in that instead of directly in the browser.
Release Regression From : 5.0
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.