wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextField" Watch "JTextField" New topic
Author

JTextField

r phipps
Ranch Hand

Joined: Sep 14, 2004
Posts: 60
I have a need to have two JTextFields but only have them hit enter after entering the 2nd one. I know how to handle getting the value from the 2nd field that they have hit enter in but how do i receive the value from the first field?
r phipps
Ranch Hand

Joined: Sep 14, 2004
Posts: 60
I figured it out from one of my other books. Much better book than the one i am using for my class.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Moving to our Swing forum...


GenRocket - A Test Data Generation Platform
 
Consider Paul's rocket mass heater.
 
subject: JTextField
 
Similar Threads
submitting form when 'enter' is hit
How to submit a form from a como box - with enter key
Form value is not clearing on HTML Reset
How to deny the Enter key press action
Form value is not clearing on HTML Reset