|
|
Archive for the 'textfield' Category
Sunday 27 July 2008 @ 2:42 am
Here’s a ready made Email text field written as a swing component. This text field allows the user to type any thing in it but does not allow the focus to go out of it unless whatever the user has typed is a valid email address. Note that extensive validation is not done. You can modify the code as you like. There are no restrictions. The code uses an input verifier to achieve this.
Sunday 27 July 2008 @ 2:32 am
Here’s a ready made Numeric(Numbers only) text field written as a swing component. This text field allows only numeric data to be entered in it. When the user enters anything that non numeric in the text field, the system will beep. It’s implemented using a DocumentFilter that filters out all non-numeric characters from being entered in the Swing textfield’s document
Sunday 27 July 2008 @ 2:23 am
Here’s a ready made Upper case text field written as a swing component. It converts all characters entered in it automatically to upper case before inserting into it’s own document. So the when the user types in this text field he will see only characters in upper case irrespective of the case with which he types. There is no limitation to use this code. Use it in whatever way you like. |
Popular Articles
Blog Categories
Monthly Archives
Resources
|