This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Math code  RSS feed

 
Mike Meakin
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I just need a quick piece of code, When frame3 appears there is a simple math question of 100 + 100 =. what I need is coding for Jbutton1 (submit answer) so that you can only move onto frame4 if the obvious answer of 200 is enterd into jTextField1. Heres the existing code it needs to fit into:


 
Richard Anderson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a homework assignment? How about posting some attempted solutions that you tried and we'll provide feedback.
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read The Swing Tutorial?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!