Archive for the 'tutorials' 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




Swing’s InputVerifier tutorial: A super elegant way for validation

Friday 4 July 2008 @ 5:07 am

Let’s consider a common coding situation. Suppose you have a text field in your form that accepts an email address. Suppose you need to code such that if the email address typed by the user is not valid, then you shouldn’t let the focus out of this textfield. Where would you put such a code? In the focus lost of the email-text-field? In the focus gained for all other text-fields? I don’t know what’s the best way to do this in JavaScript but there’s a super-elegant way in Swing!




Captcha Implementation in JSP to prevent Spam in 5 minutes : step by step

Wednesday 18 June 2008 @ 4:16 pm

This article gives step-by-step instructions to setup captcha in your JSP page using recaptcha. In total there are 3 steps

  • Sign up at http://recaptcha.net and get the Public and Private Keys
  • Download the reCaptcha4j library
  • Write code in your jsp to implement it

Continue Reading »
Captcha Implementation in JSP to prevent Spam in 5 minutes : step by step








Popular Articles

Blog Categories

Monthly Archives

Resources