RFR: 8301121: RichTextArea Control (Incubator) [v7]
Andy Goryachev
angorya at openjdk.org
Fri Sep 13 21:06:11 UTC 2024
On Fri, 13 Sep 2024 20:54:12 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> So, do we really need `fromInlineStyle`?
Now I understand the question!
A bit of history: I had a single method before that accepted `(String style, String ... names)`. Turns out it was a trap: it's easy to forget about it and simply supply a list of style names, which results in the first style name being interpreted as an inline style (and cause an error message). Since I fell into this trap myself, I thought it would be better to have two methods with descriptive names.
Is there a better solution?
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1524#issuecomment-2350190960
More information about the openjfx-dev
mailing list