GNOME Bugzilla – Bug 679542
When maximizing a java swing application the menu collapses immediately
Last modified: 2014-04-26 14:48:11 UTC
When I maximize a java swing application (e.g. Netbeans or Oracle JDeveloper) I cannot use the application's menu, because it collapses immediately after clicking on it. This bug is already recognized by Oracle, but they say it should be a Gnome3 problem. When running a swing application in other DE, such as XFCE, LXDE and unity this problem does not occur. Please see a video that illustrates the problem at http://youtu.be/noq6OhuWPQA This video is made by the user who filed the bug at oracle. It seems to me that there is an error in offset calculation. When having two menus (lets say "file" and "edit") and I click on "file", keeping the mouse button pressed and move over to menu "edit" I am able to select entries from the "file" menu. Workaround for this problem is to perform the following steps: 1. move window to upper left corner (position [0,0]) 2. then maximize the window When doing this, the bug does not appear!
This has also been discussed here: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/777425 I can confirm the issue for GNOME Shell 3.6.1 with openjdk 1.7.0_09. Will this issue be addressed soon?
It seems that the Linux Mint guys fixed the issue: https://github.com/linuxmint/muffin/pull/11
(In reply to comment #2) > It seems that the Linux Mint guys fixed the issue: > https://github.com/linuxmint/muffin/pull/11 Given that the fix consists in changing the WM_NAME property back to "Mutter" to trigger special-casing in Java itself, is this still an issue? If so, the problem would be that we use a WM_NAME of "GNOME Shell" nowadays, and Oracle would be expected to use the same special case as for "Mutter".
http://hg.openjdk.java.net/jdk8/awt/jdk/file/7cda96a78260/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java On line 723 in this file (I can't link to the line directly) is where they check for Mutter.
Filed bug against IcedTea: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1400 Omair Majid is looking into the fix, see Red Hat bug report: https://bugzilla.redhat.com/show_bug.cgi?id=918055#c9
The bug has been fixed in IcedTea and I can no longer reproduce the problem with Fedora 20, I think this can be marked as resolved.
Closing as of comment #6