private Slider createSlider(double minValue, double maxValue, double defaultValue, String sliderId) { try { return SliderBuilder.create().prefWidth(100).id(sliderId).min(minValue).max(maxValue).value(defaultValue).minorTickCount(4).majorTickUnit((maxValue - minValue) / 4).showTickLabels(true).showTickMarks(true).build(); } catch (Throwable ex) { log(ex); } return null; }