JDK-8369085 : RichTextArea SELECT_PARAGRAPH to include line separator
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx24
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2025-10-01
  • Updated: 2025-10-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
In standard text editors the entire row is selected when triple-clicking a row with the mouse. By "entire row" I here mean that the eol characters are included in the selection. This is not the case for the new RichTextArea.
Triple-clicking and doing ctrl-X will leave and empty row behind and the cut text does not have the eol included.
This is reported as a bug since this is standard behavior in text editors, including the standard TextArea component in JavaFX.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a window with a RichTextArea, triple-click the line, not that there is a blank row left in the window. Paste the text into a different text editor. Note that there is no line break at the end.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
EOL characters are included in the triple-click selection.
ACTUAL -
EOL characters are not included in the triple-click selection.


Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1940 Date: 2025-10-20 21:28:48 +0000
20-10-2025

The submitter is right - the triple click (Tag.SELECT_PARAGRAPH) should include the newline.
03-10-2025

Requested the submitter for a simple reproducer.
03-10-2025