Archive for July, 2008



Never thought Even constants(public static final) could be Bad

Wednesday 30 July 2008 @ 2:59 pm

Don’t get me wrong. Using Constants are good. But I am just facing a situation where I feel terribly bad on why I did.
Continue Reading »
Never thought Even constants(public static final) could be Bad




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








Popular Articles

Blog Categories

Monthly Archives

Resources