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

JMenu layout incorrect on dual Monitor systems on secondary monitor

    XMLWordPrintable

Details

    • 04
    • x86
    • windows_2000

    Backports

      Description

        The problem occurs on dual monitor systems on Windows (as well on Mac OS X).
        The systems have two monitors which create one logical monitor. Graphical
        objects can me moved pixel bt pixel from one monitor to the other.

        JMenu lists are right aligned on the seconadry monitor where they
        should be left aligned.

        The problem occurs in the layout of a JMenue depending on which monitor is
        used. The monitor boundary recognition seems to predict wrong monitor boundaries.

        The behaviour can be recreated by any JFC program using JMenues (for example
        SwingSet).

        Procede as follows:
        Assume you have a main monitor with a secondary monitor.
        Assume the secondary monitor is logically attached on the right side of the main monitor.
        1.) Startup program and click on a menue entry in the menue bar:
        The list of menue items will fall down and it will be
        left aligned to the above Menubar entry.
        2.) Move the window that close to right main monitor border that the menue
        has not anymore enough space to fall down alighned to the left menue
        entry.
        => JFC will automatically make the menue items right aligned. They're
        now more left then before in the normal mode.
        This behaviour still seems to be correct.
        (On the other hand: The secondary monitor extends the monitor
        space on the right and there would be real estate to
        display the menulist on the right monitor)
        3.) Move the Window completly to the real estate of the second monitor.
        => The menulist will still be right aligned (sticking to the left).
        This is an incorrect behaviour. The menulist should
        be aligned to the right side (and stick to the left)!

        ###@###.### 2002-03-05

        Attachments

          Issue Links

            Activity

              People

                kizune Alexander Zuev
                stschnei Stefan Schneider (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: