File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
wood burning stoves
 
subject: Getting values from textfield
 
Similar Threads
Help with simple Recursive functions
confusion with constructor argument
Exception handling advice
For your advice on the Calulator so far developed
Recursion Reverse String