This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 15299
    
    6

Moving to our Swing forum...


GenRocket - Experts at Building Test Data
 
wood burning stoves
 
subject: JTextField