1. Run the attached code
2. Move mouse inside the TextField which is at the top of the window
3. Press and hold the mouse. Observe a mouse event with type "MOUSE_PRESSED" printed in the output.
4. Release the mouse. Observe a mouse event with type "MOUSE_RELEASED" printed in the output.
5. Move mouse inside the TextArea which is at the bottom of the window.
6. Press and hold the mouse. Observe no event printed. Expected behavior: a "MOUSE_PRESSED" event is printed.
7. Release the mouse. Observe no event printed. Expected behavior: a "MOUSE_RELEASED" event is printed.
2. Move mouse inside the TextField which is at the top of the window
3. Press and hold the mouse. Observe a mouse event with type "MOUSE_PRESSED" printed in the output.
4. Release the mouse. Observe a mouse event with type "MOUSE_RELEASED" printed in the output.
5. Move mouse inside the TextArea which is at the bottom of the window.
6. Press and hold the mouse. Observe no event printed. Expected behavior: a "MOUSE_PRESSED" event is printed.
7. Release the mouse. Observe no event printed. Expected behavior: a "MOUSE_RELEASED" event is printed.
- relates to
-
JDK-8087655 TextArea doesn't generate MOUSE_DRAGGED, MOUSE_PRESSED, MOUSE_RELEASED events
-
- Open
-
-
JDK-8087845 TextArea.addEventHandler(... does not work for events: MouseEvent.MOUSE_DRAGGED, MouseEvent.MOUSE_RELEASED, MouseEvent.MOUSE_PRESSED
-
- Open
-
-
JDK-8163268 TextArea consumes some of mouse events
-
- Closed
-
-
JDK-8320557 TextField: ESC should not consume KeyEvent if nothing to cancel
-
- Open
-