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

TextArea consumes some of mouse events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 8, 9
    • javafx

      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

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

              Created:
              Updated:
              Resolved: