JDK-6987845 : JComboBox should display its drop-down list with consistent translucency
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2010-09-28
  • Updated: 2023-01-13
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
tbdUnresolved
Related Reports
Relates :  
Description
Run the attached code. It creates JFrame with two JComboBoxes. One is on the very bottom so its drop down is opened in a separate window. 0.5f opacity is applied to the window. One JComboBox shows its drop down translucent, the bottom one - opaque. If you maximize the window, the bottom JComboBox will open drop down above itself and in this case it will be transparent. So there is incosistency in the translucency of drop down - it should be either always translucent or always opaque.

Comments
- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

EVALUATION Swing popups can eigther be lightweight(lw) or heavyweight(hw), lw ones are used whent the popup fits the frame bounds and that's why the frame's transparency affects it. The hw popup is actually another window and is not affected by the transparency settings from the main window, that's why you see the difference. There is a special setting: JPopupMenu.setDefaultLightWeightPopupEnabled(false) which makes all the popups to be hw and makes the consistenlty opaque, however another solution is possible - keep the transluceny level of the main frame for the child popups this bug is downgraded and accepted
01-10-2010