Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Spring Boot in Practice
this week in the
Spring
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
Programmer Certification (OCPJP)
TextField
Sunita Vontel
Ranch Hand
Posts: 72
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to type something in the text field and when I press enter I want the text field to clear.
Which function of TextField can I use to achieve this.
Surya B
Ranch Hand
Posts: 98
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
In the action event of Textfield try this:
TextField.setText("");
Surya
Sunita Vontel
Ranch Hand
Posts: 72
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks surya
I was doing TextField.setText();
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Inserting an Image in JTextField
Plz help! Not able to get focus on text field!!
Changing maxlength of textfield
HOW to write code for VK_TAB
how can i set the focus?
More...