GNOME Bugzilla – Bug 663093
Menus in menu bar unusable in Full screen Java swing application
Last modified: 2011-10-31 17:19:01 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); } }); } }
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 ***