Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7106505

Menus collapsing in fullscreen swing application in Gnome 3

    Details

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.7.0"
        Java(TM) SE Runtime Environment (build 1.7.0-b147)
        Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

        and

        java version "1.6.0_25"
        Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
        Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Linux saber 2.6.40.6-0.fc15.x86_64 #1 SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Fedora 15, Gnome 3

        A DESCRIPTION OF THE PROBLEM :
        Whenever a swing application is in full screen (or split screen) in a Gnome 3 environment, the menus in the menu bar immediately collapse after pressing on the menu.

        Both java version "1.7.0" and java version "1.6.0_25" have been tested and are affected. OpenJDK 1.6 is not affected.

        Please look at http://youtu.be/noq6OhuWPQA for a video illustrating the problem.

        REGRESSION. Last worked in version 7

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        - Create a JFrame and set a JMenubar to it
        - Launch application and make fullscreen by pushing against the edge of the screen
        - Click a menu in the menu bar

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        After clicking the menu it should remain expanded
        ACTUAL -
        After clicking the menu the it immediately collapses

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        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);
        }

        });
        }
        }

        ---------- END SOURCE ----------

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pbansal Pankaj Bansal
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Imported:
                    Indexed: