JDK-6585992 : Can't interact with JMenus in SwingSet2 over cygwin X server
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris_2.5.1
  • CPU: x86
  • Submitted: 2007-07-26
  • Updated: 2011-04-29
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Linux host01 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux  (RedHat Enterprise 3)

Microsoft Windows XP [Version 5.1.2600]



EXTRA RELEVANT SYSTEM CONFIGURATION :
Gnome 2.2.4, Cygwin/X Project Release 6.8.2.0-4

A DESCRIPTION OF THE PROBLEM :
JMenu's are not working properly in 1.6 u2 under multiple circumstances.  Using the config documented in this bug report, the problem occurs every time.

However, the problem also occurs randomly on the Red Hat box when the locally connected display is being used as opposed to a remote display.  This is a pretty severe problem since it is a very standard, basic, baseline configuration- RH E3, JDK 1.6, and SwingSet2.

Perhaps this is still related to bug ID 6429775.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
  To reproduce, open SwingSet2 on the RH E3 box using an XP box running Cygwin X as a remote display.  The problem is immediately visible: you cannot properly interact with the menubar.  Try clicking file, and the menu items are shown for a split second and then they disappear.  If you hold the mouse button down, the menu items won't disappear but you can't interact with them via the mouse.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The menu should act normally- staying visible after activating it, and allowing you to interact with it via the mouse.
ACTUAL -
The menu doesn't work properly.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
If you hold the mouse button down while activating the menu, you can use the keyboard to navigate and select the menu item you want.  Also, setting AWT_TOOLKIT to MToolKit seems to work as a workaround.

Comments
EVALUATION most likely we either have incorrect coordinates of popup menu or incorrectly use them in grab's implementation.
27-07-2007