PDA

View Full Version : NumberField, how to change the font-size and font-color



liondev
7 Apr 2011, 11:33 AM
Hello everybody! i need some help.

I want to change the font size/color of a NumberField but i cant do whit:



NumberField pagoefectivo = new NumberField();
pagoefectivo.setAllowNegative(false);
pagoefectivo.setAllowBlank(false);
pagoefectivo.setStyleAttribute("fontSize","24px")
//pagoefectivo.setStyleName("x-large-numberfield")


i dont want edit the gxt css file

is there any way to do this pragmatically?
thank you

liondev
7 Apr 2011, 11:39 AM
its whit:

setInputStyleAttribute("fontSize", "20px");


sorry =p