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

JMenu(Bar) misbehaves after resizing window



      After resizing a JFrame, clicking an item on JMenuBar opens popup menu of another item or popup menu closes as soon as you release left mouse button.

      JPopupMenu behaves as if it's in its original position on the screen before the window was resized. Popups of JComboBox are also affected.

      1. Move the frame after resizing.
      2. Use keyboard to navigate menu. Press F10 to activate JMenuBar.

      Steps to Reproduce:
      Let us assume JMenuBar contains five menu items: Item1 .. Item5.
      Move the JFrame so that there's space to the left of the left window edge.

      1. Resize the window by dragging its left edge to the left closer to the edge of the screen;
      2. Click Item5 on the menu bar: its popup opens,
          • As soon as you release the left mouse button, a popup of a menu to left gets opened;
          • As you move the mouse cursor, menu items are highlighted with an offset. If yes, the bug is reproduced.

      This bug affects all versions of JDK 7 in GNOME 3 environment.
      It is reproduced on Ubuntu 18.04 and Solaris 11.4 (Solaris 11.3 is not affected).

      It does not affect JDK 8.


          Issue Links



              • Assignee:
                aivanov Alexey Ivanov
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created: