How to move one Text Field to another Text Field by pressing Enter Key?
in Java
suzy_naresh
0
Newbie Poster
Recommended Answers
Jump to Posttf2.setText(tf1.getText());
in an ActionListener. If you don't know what an ActionListener is, or how to use one, then read the Swing Tutorials. (addActionListener on a JTextField will cause "Enter" to fire an ActionEvent)
All 2 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.