Skip to main content

how to validate text in text field to take only characters

1 reply [Last post]
manju84reddy
Offline
Joined: 2010-01-18

hi all,
I am new to javaME and LWUIT can any one share how to validate text in textfield to only take characters..

iam also finding problem in setting font for button..
i tried to set the label for the button with font set for it but the text is not shown on the button.. and also how to align text in button to center.

if u find any use full tutorials on lWUIT please provide me..
thanks.

Message was edited by: manju84reddy

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

There are quite a few tutorials on the internet as well as a book and a PDF in the standard binary distribution.
Use the addDataChangeListener or addActionListener methods to monitor changes to the text field and implement your validation logic.