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

TextArea consumes some of mouse events

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 8, 9
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      Reproducible: always
      Regression: no
      Platform-specific: no

      Steps to reproduce: run attached sample and try:
      1. Click on TextArea.
      Expected events (among others): MOUSE_PRESSED, MOUSE_RELEASED
      Actual result: only MOUSE_CLICKED event.
      2. Perform mouse drag inside of TextArea:
      Expected event: MOUSE_DRAGGED
      Actual result: no MOUSE_DRAGGED event

      So, user can't use TextArea.setOnMousePressed, TextArea.setOnMouseReleased, TextArea.setOnMouseDragged. TextArea.addEventHandler doesn't work for that methods either.

      Workaround: it it still possible to handle that events using TextArea.addEventFilter.

      All this events are fired normally for TextField.

      RULE "SceneGraphAutomated/test/scenegraph/events/TextAreaEventsTest/onMouseDraged" Exception org.jemmy.TimeoutExpiredException: State 'test.scenegraph.events.EventTestCommon$22...' has not been reached in ... milliseconds
      RULE "SceneGraphAutomated/test/scenegraph/events/TextAreaEventsTest/onMousePressed" Exception org.jemmy.TimeoutExpiredException: State 'test.scenegraph.events.EventTestCommon$22...' has not been reached in ... milliseconds
      RULE "SceneGraphAutomated/test/scenegraph/events/TextAreaEventsTest/onMouseReleased" Exception org.jemmy.TimeoutExpiredException: State 'test.scenegraph.events.EventTestCommon$22...' has not been reached in ... milliseconds

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              arusakov Andrey Rusakov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: