JDK-8372295 : RichTextArea: issues with StyleAttributeMap.FIRST_LINE_INDENT
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • Submitted: 2025-11-20
  • Updated: 2025-12-05
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
Blocks :  
Relates :  
Description
Setting FIRST_LINE_INDENT breaks the caret shape, selection shape, and keyboard navigation at the start of paragraph.

To reproduce, use the latest Monkey Tester
https://github.com/andy-goryachev-oracle/MonkeyTest

- select the RichTextArea page
- select the RichTextArea model
- select Control -> Context Menu -> RichTextArea menu
- type in some text, right click and select Paragraph Styles -> First Line Indent -> 50

Observe the following issues:

1. the caret and selection should not be allowed at the left edge of the paragraph on the first line
2. selection of the indentation should not be allowed
3. selection/caret position is off in the whole paragraph by what appears to be one symbol
4. empty paragraph with first line indent has a height of 1 pixel

The current implementation is not good, the real solution depends on JDK-8231014