You could create the form, then call an extension ...
# tornadofx
e
You could create the form, then call an extension function that creates a layout wrapper depending on the passed in layout argument, and then render the rest of the fields inside there. You might need to add a separate button wrapper in case of your square set layout to make only the two first buttons appear in the same line