Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Seems simple enough, using setText to display GUI results

 
Pat Steele
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I have the code here to populate a GUI.
I have the math and then print out and return a single number.
I have tried to use setText in the class CalculateButtonHandler.
Please see if you can solve the problem.

 
Mohamed Sanaulla
Bartender
Posts: 3166
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the below line:



you are setting the correct handler for the Calculate button. The calculation handler is cbHandler and not ebHandler.

A bit more clear names would help in avoiding such errors and oversights.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!