Archive for the 'components' Category



Demystifying JFormattedTextField: A Step by Step tutorial

Wednesday 30 July 2008 @ 9:59 am

   JFormattedTextField is a very useful Swing component, that let’s your users see data in a format suitable for them, while letting you read or write from it in a way that that suitable for your code. Let’s make sure that you clearly understand everything related to it.
Continue Reading »
Demystifying JFormattedTextField: A Step by Step tutorial




Ready made Simple Custom TextField components

Sunday 27 July 2008 @ 8:01 am

   Here’s 3 kinds of text fields that you may want to use in your java swing projects.

   Besides using this components in whatever way you like, looking at the code can give you an excellent insight on using InputVerifier and DocumentFilter if you have already not used them




Email JTextField in Swing: Ready made code

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.
Continue Reading »
Email JTextField in Swing: Ready made code




Numeric (Number only) JTextField in Swing: Ready made code

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
Continue Reading »
Numeric (Number only) JTextField in Swing: Ready made code




Upper Case JTextField in Swing: Ready made code

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.
Continue Reading »
Upper Case JTextField in Swing: Ready made code








Popular Articles

Blog Categories

Monthly Archives

Resources