diff --git a/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/FormRenderer.java b/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/FormRenderer.java index 007cb8d..cc67935 100644 --- a/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/FormRenderer.java +++ b/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/FormRenderer.java @@ -78,6 +78,8 @@ public void initializeParts() { */ @Override public void layoutParts() { + getStyleClass().add("formsfx-form"); + setPadding(new Insets(10)); getChildren().addAll(sections); } diff --git a/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/SectionRenderer.java b/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/SectionRenderer.java index 143f6c7..ff276bd 100644 --- a/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/SectionRenderer.java +++ b/formsfx-core/src/main/java/com/dlsc/formsfx/view/renderer/SectionRenderer.java @@ -59,6 +59,9 @@ public void initializeParts() { @Override public void layoutParts() { super.layoutParts(); + + getStyleClass().add("formsfx-section"); + titledPane.setContent(grid); getChildren().add(titledPane);