This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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.
posted 15 years ago
yup, there is. When the enter (return) key is pressed in the TextField, an action event is generated and you could add an action listner which will set the TextField to " ". One way of doing it. regds. - satya