Integrated: 8307208: Add GridPane constructor that accepts hGap and vGap values
Marius Hanl
mhanl at openjdk.org
Fri May 5 21:19:19 UTC 2023
On Wed, 3 May 2023 20:13:42 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
> This PR adds a new constructor to `GridPane` that accepts a `hgap` and a `vgap`.
> As also written in the ticket, this is a small enhancement to improve the creation of a layout involving a `GridPane` without FXML.
> In my experience, the `hgap` and the `vgap` are almost always set when creating a layout with the `GridPane`, as a space between the content just looks much better.
>
> This also fits well with other classes like `HBox` and `VBox`, which also provide a constructor that accepts the spacing.
This pull request has now been integrated.
Changeset: c50ce609
Author: Marius Hanl <mhanl at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/c50ce6093e1a91ee41a69e4fd25bff606b146118
Stats: 27 lines in 2 files changed: 25 ins; 0 del; 2 mod
8307208: Add GridPane constructor that accepts hGap and vGap values
Reviewed-by: angorya, nlisker, jhendrikx, kcr
-------------
PR: https://git.openjdk.org/jfx/pull/1125
More information about the openjfx-dev
mailing list