After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663093 - Menus in menu bar unusable in Full screen Java swing application
Menus in menu bar unusable in Full screen Java swing application
Status: RESOLVED DUPLICATE of bug 648363
Product: mutter
Classification: Core
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-31 12:03 UTC by vasco.visser
Modified: 2011-10-31 17:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description vasco.visser 2011-10-31 12:03:11 UTC
When a swing application is full screen or split screen by pushing 
the application against the top or side of the screen respectively, 
the menus become unusable. What happens is that a menu collapses
immediately after releasing the mouse button. i.e., a user cannot 
use the menu unless the window is dragged from a full- or split 
screen state. Please look at the bottom for a simple test program 
that reproduces the problem. Also, this YouTube movie shows the
problem: http://www.youtube.com/watch?v=noq6OhuWPQA

The bug is present in Sun's Java 1.6 and 1.7, but not in OpenJDK 1.6.
I already submitted a bug report at Sun. Should I also report this 
bug for gnome-shell (as the problem might be in there?).


An extremely simple test program that reproduces the problem:

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.SwingUtilities;


public class Main {

       public static void main(String[] args) {

               SwingUtilities.invokeLater(new Runnable(){
                       @Override
                       public void run() {
                               JFrame f = new JFrame();
                               JMenuBar jmb = new JMenuBar();
                               JMenu jm = new JMenu("File");
                               jm.add(new JMenuItem("New"));
                               jmb.add(jm);
                               f.setJMenuBar(jmb);
                               f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                               f.setSize(800, 600);
                               f.setVisible(true);
                       }

               });
       }
}
Comment 1 Rui Matos 2011-10-31 17:19:01 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 648363 ***