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

setDefaultLookAndFeelDecorated works incorrectly on multi-mon with independent screens

XMLWordPrintable

      I am creating a JFrame with defaultLookAndFeelDecorated set to true. I see custom decorations on the title bar of the frame. I am running this on soalris with a multi-monitor setup having 2 independent screens. I am clicking the title bar of the frame and dragging towards left (frame is currently located on the right monitor - Mon2). When I reach the periphery of the screen, the frame stops there and mouse alone is getting dragged to the left monitor(Mon1). But as soon as the mouse enters the left monitor, the frame is shifted to the right most periphery of the monitor in which it is shown(mon2) and starts moving towards left when I move the mouse inside Mon1.

      But this does not happen with any other frame and it does not happen when the defaultLAFDecorated is set to false. Actually it does not make much sense to move the frame in one monitor when the mouse is being dragged on the other monitor. Windows should not respond to mouse dragged events when the mouse pointer is outside the monitor. This is how it behaves with respect to native windows / frames and AWT frames.

      I am able to reproduce this on Tiger as well as Mustang. Could not regress it beyond that due to unavailability of the build. This is tested on Solaris9 (CDE) with Multiple monitors setup with 2 independent screens connected to 2 different video boards.

      I have attached a sample test. Execute it on the right monitor. As soon as the JFrame comes up, click on the title bar and drag it towards the left monitor. You would notice the above behavior when the mouse pointer enters the left monitor.
      ###@###.### 10/13/04 14:24 GMT

            Unassigned Unassigned
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: