From c09855a0ce552e3c9ade401d59b0c757553eedf9 Mon Sep 17 00:00:00 2001 From: Felipe Lang Date: Fri, 3 Mar 2023 11:00:30 -0300 Subject: [PATCH] fix: do not use Vaadin 24 deprecated constructor --- .../flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java index 9ac2eb2..239f86b 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java @@ -56,7 +56,8 @@ public OrientationDemo() { twinColGrid.addColumn(Book::getTitle).setHeader("Title").setSortable(true); FormLayout formLayout = new FormLayout(); - Select orientationField = new Select<>(Orientation.values()); + Select orientationField = new Select<>(); + orientationField.setItems(Orientation.values()); orientationField.addValueChangeListener(ev -> twinColGrid.withOrientation(ev.getValue())); orientationField.setValue(twinColGrid.getOrientation()); orientationField.setWidth("225px");