Initialize NumberField with an integer value

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.
17810379.png

Use IntegerField instead

Please refer to the below link. I think you will get your answers in this.

https://vaadin.com/components/vaadin-number-field/java-examples/number-field