try to see DateField...
bye pat
2009/7/1 subbu <[email protected]>
>
> Hi all,
> I am using a gwt ext text field in my application.But i can not
> set the maximum character,i have set it to 2 even after that i can add
> more than 2 character.This is my code.
>
> final TextField hourTextField = new TextField();
> int hour = new Date().getHours();
> String hourtext = String.valueOf(hour);
> hourTextField.setMaxLength(2);
> hourTextField.setMaxLengthText("Maxlength exceeds");
> hourTextField.setWidth(23);
> hourTextField.setValue(hourtext);
>
> Thanks and Regards,
>
> Subash k .s
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---