This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Getting values from textfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting values from textfield" Watch "Getting values from textfield" New topic
Author

Getting values from textfield

Garry Meax
Ranch Hand

Joined: Feb 11, 2005
Posts: 31


this method is used to get the value in a text field and return it as a integer value.
can someone tell me why JTextField CurrentValue is used. normally i see String CurrentValue or int CurrentValue.

can someone explain this to me
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
In the method you posted currentValue is the name of an instance of the class type JTextField. This instance is passed as an argument into the getValue method.
 
 
subject: Getting values from textfield
 
Similar Threads
Help with simple Recursive functions
confusion with constructor argument
For your advice on the Calulator so far developed
Exception handling advice
Recursion Reverse String