Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting values from textfield

 
Garry Meax
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic