This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, Does anyone know of an easy way of validating the JTextfield input. I would like to only permit numbers in the JTextfield, and deleting any character strings the user have entered. If possible, preventing the string to be displayed at all. thanks in advanced for your help. Sarone
hi sarone, write a utility class which extends javax.swing.text.PlainDocument and override the insertString method and define it the way you want.Finally set the document for ur jtextfield. Thanks, Sai