Jump to content


Best Way To Return Calculations Into A Textfield?


  • Please log in to reply
3 replies to this topic

#1 Andrew Fisher

Andrew Fisher

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 January 2011 - 09:48 PM

This is just a basic question

I have the user inputting the information in TextFields. Now I have separate classes that do all the calculations for it and now I want to display them in the TextFields that aren't editable on the users screen.

Any Suggestions to what would be the best way to do that?

#2 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 884 posts
  • Gender:Male
  • Location:Belgium

Posted 08 January 2011 - 01:58 PM

Could you be more specific in what you're asking help with.
The flow of your program?
How to make textfields not editable?
How to set text in a textfield?

#3 Andrew Fisher

Andrew Fisher

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 08 January 2011 - 08:17 PM

i have set the text fields not editable already but its getting the calculations to appear in the textfield.

#4 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 884 posts
  • Gender:Male
  • Location:Belgium

Posted 09 January 2011 - 11:43 AM

Use the setText method of the TextField.