JDK-6695441 : JPopup menu: JCK test failure + inconsistent behaviour
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: OpenJDK6
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: generic
  • Submitted: 2008-04-29
  • Updated: 2011-03-15
  • Resolved: 2011-03-15
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
7Resolved
Related Reports
Relates :  
Relates :  
Description
Test 
   api/javax_swing/JPopupMenu/descriptions.html#setgetXXX
fails on linux ubuntu 8.04 GNOME desktop 2.22.1 with compiz extension 
turned off (System->Parameters->Appearance Preferences; open "Visual 
Effects" tab  and select "None").

Test creates JPopupMenu sets location to (1,1) then verifies that 
JPopupMenus's location on screen is (1,1). Ubuntu desktop has a gnome panel
on the top of screen, and popup appears under the panel (by y axis), so popups's 
location on screen is (1,25). 

With sun jdk 6, popup menu always appears in point (1,1) above 
gnome panel (z-order), with first menu item selected.

With open jdk 6 popup menu first menu item is never selected, with compiz
extension it appears below gnome panel by z axis, and with no compiz 
extension under the panel by y axis.

Versions:
sun jdk 6
   java version "1.6.0"
   Java(TM) SE Runtime Environment (build 1.6.0-b105)
   Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
open jdk 6
   openjdk version "1.6.0-ea"
   OpenJDK Runtime Environment (build 1.6.0-ea-b08)
   OpenJDK Client VM (build 10.0-b19, mixed mode)

Screenshots and test code are in attachement
see comments

Comments
EVALUATION This should be reproducible on JDK 7 as well, I guess that to fix it we should set the popup type for our heavyweight popup windows as it decribed in 6899706
25-02-2011

EVALUATION This bug is a duplicate of 6707909. After a fix for 6708392 there will be a new API, which will allow to fix 6707909. So, after a fix for 6707909, this bug will disappear.
04-07-2008