JDK-7094099 : DropDown List of JComboBox detached
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86
  • Submitted: 2011-09-23
  • Updated: 2014-10-15
  • Resolved: 2014-02-18
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.
JDK 7 JDK 8 JDK 9
7u66Fixed 8u20 b03Fixed 9Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
When an JComboBox is showing its dropdown list in an Applet in a browser, pressing the browser's scrollbar arrow / moving the browser's scrollbar does not update the dropdown list location. It stays still on the screen which makes the dropdown list seems to be "detached" from its JComboBox.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Prepare an Applet to display a JComboBox and a HTML file, jnlp...etc for standard applet deployment.
In the HTML, it should contain some spacing, eg. <br/>, in the <body> part.

Open an Applet with any browser, resizes height of the browser / input more space in html file so that the browser's vertical scrollbar appears.

Click on the JComboBox to show its dropdown list, then press the browser's scrollbar arrow or drag the browser's scrollbar to perform scrolling.

The dropdown list of the JComboBox is detached from its parent instead of scrolling along with the JComboBox.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Location of the dropdown list should be updated with its JComboBox.
ACTUAL -
Location is not updated.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
package test.applet;

import java.awt.*;
import javax.swing.*;

public class TestApplet extends JApplet {
	public void init() {
		super.init();
		String[] comboBoxModel = new String[] {"This is Choice 1.", "This is Choice 2."};
		JComboBox comboBox = new JComboBox(comboBoxModel);
		getContentPane().add(comboBox);
		setSize(300, 100);
	}
}
---------- END SOURCE ----------

Comments
For me the bug is also reproducible on Google Chrome 32 Winx64
04-02-2014