this sample code help you to set limit on textfield in java swing. e.g in you want to set mobile number 10 digit only or any thing you want . just change constructor parameter in attached file
TextField Limit validation
Collapse
X
-
TextField Limit validation
Last edited by vitthaldevkar; Nov 30 '12, 11:26 AM. Reason: file attachment in not proper . so again try. finally okTags: None