NumberField to Form with addFormItem

Hi, is it somehow possible to put NumberField with hasControls to Form with method addFormItem? i have no Problem with TextField but NumberField or BigDecimalField wont working.
I would like to have Label on the left and not above.

This seems to work ok for me:

NumberField numberField = new NumberField();
formLayout.addFormItem(numberField, "Number field");


Sorry. You are right. I was talking about NumberField and BigDecimalField but used IntegerField. I changed IntegerField to NumberField and it works properly. Thank You.

I did try this with IntegerField and BigDecimalField too and I didn’t encounter any problems