RFR: 8301121: RichTextArea Control (Incubator) [v7]

Andy Goryachev angorya at openjdk.org
Mon Sep 9 16:18:11 UTC 2024


On Fri, 6 Sep 2024 22:08:05 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

> This method seems redundant: `fromInlineStyle(style)` and `fromStyles(style)` are equivalent. Do we need both?

These are not the same.

`fromInlineStyle(String)` accepts as single string containing fx-style CSS with one more more styles.  Example: `"-fx-fill:red; -fx-font-size:200%;"`

`fromStyles(String style, String ... names)` is more generic, allows for setting the inline style as well as CSS stylesheet names.

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

PR Comment: https://git.openjdk.org/jfx/pull/1524#issuecomment-2338535639


More information about the openjfx-dev mailing list