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

Dragging cursor in PassFailJFrame tests on Windows has unexpected cursor behavior

XMLWordPrintable

      When clicking and dragging a cursor across different components with varying cursor types (hand, I-beam, etc.), the native behavior of all OS's is to retain the cursor type until dragging is complete and the LMB is released. However, on Windows, PassFailJFrame tests that test this behavior fail due retaining the cursor type for only a short amount of time before updating like the LMB has already been released.

      This was caught in java/awt/Cursor/CursorDragTest/ListDragCursor.java and java/awt/TextArea/TextAreaCursorTest/HoveringAndDraggingTest.

      Tested the same ListDragCursor.java test without the PFJ and the behavior is correct. I tried adding a new window (to simulate the PFJ instructions window) and it still was correct. I changed Frame to JFrame to see if there was a difference and there was none. I tested EventQueue and SwingUtilities invokeAndWait method, but still couldn't make it fail.

            aivanov Alexey Ivanov
            dnguyen Damon Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: