RFR: 8272870: Add convenience factory methods for border and background [v3]
Nir Lisker
nlisker at openjdk.java.net
Thu Sep 16 20:53:48 UTC 2021
On Thu, 16 Sep 2021 08:36:49 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
> One comment from my side: I would find it quite useful if we have another border factory method with a double as the second parameter which let us specify the border width. So e.g.
>
> ```
> public static Border stroke(Paint stroke, double width) {
> return new Border(new BorderStroke(stroke, BorderStrokeStyle.SOLID, null, new BorderWidths(width)));
> }
> ```
>
> But I really want to hear other opinions. This can also be a follow up. :)
I don't mind adding this variant, but it needs consensus.
-------------
PR: https://git.openjdk.java.net/jfx/pull/610
More information about the openjfx-dev
mailing list