RFR: 8314482: TextFlow: TabStopPolicy [v3]

Kevin Rushforth kcr at openjdk.org
Tue Jul 8 23:17:44 UTC 2025


On Wed, 18 Jun 2025 18:41:14 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/javafx/scene/text/TabStopPolicy.java line 67:
>> 
>>> 65:      *
>>> 66:      * @return the default tab stops property
>>> 67:      * @defaultValue 0
>> 
>> Would "8" be a better default value? I think having tabs do something (instead of effectively being ignored) by default when you create a TabStopPolicy would be less surprising to app developers.
>
> No, this value is in pixels (unlike the `tabSize` property).  I think it's better to let the application specify it explicitly.

OK, this seems like a good reason to leave it.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1744#discussion_r2193589109


More information about the openjfx-dev mailing list