A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Swing / AWT / SWT
Joined: Nov 03, 2000
Mar 06, 2001 20:54:00
Is there any way to make an entry disappear once a user presses
enter. Eg John is typed into a textfield and once the user presses enter the textfield is once again blank
Thank you for your help.
Joined: Jun 03, 2000
Mar 06, 2001 22:36:00
yup, there is.
When the enter (return) key is pressed in the
, an action event is generated and
you could add an action listner which will set the
to " ".
One way of doing it.
Take a Minute, Donate an Hour, Change a Life
It is sorta covered in the
JavaRanch Style Guide
subject: JTextField question
How to write an event for "Enter" key?
TextArea and ActionEvent
How to submit multiple records in one trip
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015