I would like the NumberField to intialize with an integer, iso a double, but am unsure how to achieve this.
NumberField widthField = new NumberField("Width");
widthField.setHasControls(true);
widthField.setPattern("^[1-9]
[0-9]
{0,2}$");
widthField.setValue((double) 90);
widthField.setStep(10);
Even though I set an integer pattern, I get attached result.
Suggestions would be much appreciated.