On Fri, 6 Sep 2024 22:08:05 GMT, Kevin Rushforth <k...@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

Reply via email to