Vaadin TextField Problem

How to set both textField.setStyleName("align-right"); and textField.setWidth("100px"); in a program

If I set both properties one is working ie., textField.setWidth("100px"); only

How to set TextField text position in right side and dynamically set the width and height


https://vaadin.com/forum#!/thread/239952