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

Menus get confused after resizing frame under TWM window manager

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

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

      ADDITIONAL OS VERSION INFORMATION :
      Linux macdonaldjlinux 2.6.11.4-20a-smp #1 SMP Wed Mar 23 21:52:37 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Requires TWM Window Manager

      A DESCRIPTION OF THE PROBLEM :
      When using the TWM window manager, if you resize a JFrame with a menubar, the mouse clicking becomes out of sync. That is, if you show a window, then resize it by clicking and dragging the native resize control on the top-right corner, if you then click a menu item along the menubar, the menu will disappear. If you click and hold the mouse button down so that the menu remains visible, and then drag downwards to highlight menu items, you can see that the window's notion of where the mouse is located is offset by the amount that you resized it. (A screenshot would be very helpful here: what it would show is the mouse *pointer* about 50 pixels below the highlighted menu item).

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      On a machine using the TWM window manager, run the SwingSet2 demo.

      Click a menu item (e.g., File). Note that the menu stays up, and if you move your mouse to the menu items, they highlight as expected.

      Now make the SwingSet frame large by dragging the top-right resize widget upwards, say about 100 pixels.

      Now click a menu item again. Note that the menu appears and disappears immediately. Click and hold the "File" menu item so that the menu stays visible, and now drag downwards. The items will be highlighted out of sync such that menu items above the mouse pointer are highlighted.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected menu items and menus to behave as usual. This doesn't seem to happen under other window managers or other OSes.
      ACTUAL -
      Menus are menu items are confused about its location or location of the mouse pointer.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No error message.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      No need for source code -- SwingSet2 demonstrates the problem.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      The workaround is to move the window after resizing it. Then things seem to get back in sync.

        Attachments

          Activity

            People

            Assignee:
            anthony Anthony Petrov (Inactive)
            Reporter:
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: