RFR: 8272870: Add convenience factory methods for border and background [v3]

Nir Lisker nlisker at openjdk.java.net
Thu Sep 16 21:35:53 UTC 2021


On Thu, 16 Sep 2021 21:15:20 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

> I agree that it needs consensus, so the question is how many apps would use it from code (as opposed to CSS), and be satisfied with the other defaults. I don't object to adding a 2nd variant that takes a stroke width as long as we stop there. I don't want variants that take style, or corner radii, or insets, etc. (at that point, just use the existing API).

My thoughts as well, though if people care about all sorts of combinations, a builder pattern would be the way in my opinion.

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

PR: https://git.openjdk.java.net/jfx/pull/610


More information about the openjfx-dev mailing list