How to add checkbox into FormLayout (Vaadin)

I am trying to add the checkbox into the FormLayout, but it throwing an warning: My code private void createEditorLayout(SplitLayout splitLayout) { Div editorLayoutDiv = new Div(); editorLayoutDiv.setClassName("editor-layout"); Div editorDiv = new Div(); editorDiv.setClassName("editor"); editorLayoutDiv.add(editorDiv); FormLayout formLayout = new FormLayout(); monthAndYear = new DatePicker("Month and year"); organizationId = new TextField("Organiziation ID"); userId = new TextField("User… Read More How to add checkbox into FormLayout (Vaadin)