A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
this week in the
User Input into a Text Field
Joined: May 16, 2000
Jul 10, 2000 04:39:00
How do I restrict Users to only enter digits into a Text Field ?
I want to check before the User clicks OK.........
Joined: Nov 22, 2008
Jul 10, 2000 20:19:00
IMO u will have to use consume() method of the
class to consume the events of any key pressed/released that u want. once consumed the keys will not be shown in the text field/area.
It is sorta covered in the
JavaRanch Style Guide
subject: User Input into a Text Field
Drag text field on label and set label's text in textfield
popup form - howto get data ? from newbie
SETTING FOCUS ON A TEXT FIELD
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014